Only add to DHCP_RELAY if dhcpv6 servers exist (#17770)

This commit is contained in:
kellyyeh 2024-01-30 10:02:34 -08:00 committed by GitHub
parent bb5a420de5
commit 90056a92ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: