Only add to DHCP_RELAY if dhcpv6 servers exist (#17770)
This commit is contained in:
parent
bb5a420de5
commit
90056a92ac
@ -680,8 +680,8 @@ def parse_dpg(dpg, hname):
|
||||
vdhcpserver_list = vintfdhcpservers.split(';')
|
||||
vlan_attributes['dhcpv6_servers'] = vdhcpserver_list
|
||||
dhcp_attributes['dhcpv6_servers'] = vdhcpserver_list
|
||||
sonic_vlan_member_name = "Vlan%s" % (vlanid)
|
||||
dhcp_relay_table[sonic_vlan_member_name] = dhcp_attributes
|
||||
sonic_vlan_member_name = "Vlan%s" % (vlanid)
|
||||
dhcp_relay_table[sonic_vlan_member_name] = dhcp_attributes
|
||||
|
||||
vlanmac = vintf.find(str(QName(ns, "MacAddress")))
|
||||
if vlanmac is not None and vlanmac.text is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user