Skip to content

Commit

Permalink
Update python-avd/pyavd/_eos_designs/structured_config/underlay/dhcp_…
Browse files Browse the repository at this point in the history
…servers.py

Co-authored-by: Vibhu-gslab <[email protected]>
  • Loading branch information
laxmikantchintakindi and Vibhu-gslab authored Feb 28, 2025
1 parent 0a5a215 commit 497e922
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ def _set_subnets(self: AvdStructuredConfigUnderlayProtocol, dhcp_server: EosCliC
and get(peer_facts, "inband_ztp")
):
dhcp_server.vrf = "default"
subnet_item = EosCliConfigGen.DhcpServersItem.SubnetsItem()
subnet_item._update(
subnet_item = EosCliConfigGen.DhcpServersItem.SubnetsItem(
subnet=str(ip_network(f"{uplink['peer_ip_address']}/{uplink['prefix_length']}", strict=False)),
name=f"inband ztp for {peer}-{uplink['interface']}",
default_gateway=f"{uplink['peer_ip_address']}",
Expand Down

0 comments on commit 497e922

Please sign in to comment.