summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/table/path.go b/table/path.go
index 0aab6004..b07c01e1 100644
--- a/table/path.go
+++ b/table/path.go
@@ -160,6 +160,10 @@ func cloneAsPath(asAttr *bgp.PathAttributeAsPath) *bgp.PathAttributeAsPath {
}
func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor) {
+ if peer.RouteServer.Config.RouteServerClient {
+ return
+ }
+
for _, a := range path.GetPathAttrs() {
if _, y := bgp.PathAttrFlags[a.GetType()]; !y {
if a.GetFlags()&bgp.BGP_ATTR_FLAG_TRANSITIVE == 0 {
@@ -168,10 +172,6 @@ func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor)
}
}
- if peer.RouteServer.Config.RouteServerClient {
- return
- }
-
localAddress := net.ParseIP(peer.Transport.State.LocalAddress)
isZero := func(ip net.IP) bool {
return ip.Equal(net.ParseIP("0.0.0.0")) || ip.Equal(net.ParseIP("::"))