Skip to content

Commit

Permalink
Fix for ipv6 local-addr problem (sonic-net#4876)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Shirshov <[email protected]>
  • Loading branch information
2 people authored and abdosi committed Aug 1, 2020
1 parent e3edded commit f757a5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sonic-bgpcfgd/bgpcfgd
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ class BGPPeerMgrBase(Manager):
else:
# The bgp session that belongs to a vnet cannot be advertised as the default BGP session.
# So we need to check whether this bgp session belongs to a vnet.
data["local_addr"] = str(netaddr.IPNetwork(str(data["local_addr"])).ip)
interface = self.get_local_interface(data["local_addr"])
if not interface:
print_data = nbr, data["local_addr"]
Expand Down

0 comments on commit f757a5d

Please sign in to comment.