Skip to content

Commit 1876993

Browse files
Arvinderpalmurali-reddy
authored andcommitted
Removes IPv6 address insertion into BGP IPv4-only nexthop field. (#606)
#605
1 parent e99b694 commit 1876993

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/controllers/routing/network_routes_controller.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,6 @@ func (nrc *NetworkRoutingController) advertisePodRoute() error {
380380
// For ipv6 what should be next-hop value? According to this https://www.noction.com/blog/bgp-next-hop
381381
// using the link-local address may be more appropriate.
382382
bgp.NewPathAttributeMpReachNLRI(nrc.nodeIP.String(), prefixes),
383-
&bgp.PathAttributeNextHop{
384-
PathAttribute: bgp.PathAttribute{
385-
Flags: bgp.PathAttrFlags[bgp.BGP_ATTR_TYPE_NEXT_HOP],
386-
Type: bgp.BGP_ATTR_TYPE_NEXT_HOP,
387-
Length: 16,
388-
},
389-
Value: nrc.nodeIP,
390-
},
391383
}
392384

393385
glog.V(2).Infof("Advertising route: '%s/%s via %s' to peers using attribute: %+q", subnet, strconv.Itoa(cidrLen), nrc.nodeIP.String(), attrs)

0 commit comments

Comments
 (0)