Skip to content

Commit b3d3ba2

Browse files
echuawuvidyac86
authored andcommitted
Due the affection of PR sonic-net#18399 (sonic-net#18851)
Script would get the secondary ip as the ipv6 vlan interface address Update the method to get the correct ipv6 vlan interface address
1 parent a6b94f4 commit b3d3ba2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/copp/copp_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def get_vlan_ip(duthost, ip_version):
456456
if ip_version == "4":
457457
vlan_subnet = ipaddress.ip_network(mg_vlan_intfs[0]['subnet'])
458458
else:
459-
vlan_subnet = ipaddress.ip_network(mg_vlan_intfs[1]['subnet'])
459+
vlan_subnet = ipaddress.ip_network(mg_vlan_intfs[-1]['subnet'])
460460

461461
ip_addr = str(vlan_subnet[2])
462462
return ip_addr

0 commit comments

Comments
 (0)