summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorNaoto Hanaue <hanaue.naoto@po.ntts.co.jp>2016-02-17 11:13:46 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-19 21:14:59 -0800
commitb67befc30abb79bd6c70fbb96437ae6e90cfb274 (patch)
tree4fdb7bb854091b3f0321e6b10898e71277fe5e83 /server
parent496ce6cd0873b492df8190ed2d010a87def9b5e3 (diff)
ops: maintenance of two-way route exchange
Diffstat (limited to 'server')
-rw-r--r--server/server.go2
-rw-r--r--server/zclient.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go
index 325f6730..70cafeaa 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1438,7 +1438,7 @@ func (server *BgpServer) Api2PathList(resource api.Resource, name string, ApiPat
pattr = append(pattr, bgp.NewPathAttributeExtendedCommunities(extcomms))
}
- paths = append(paths, table.NewPath(pi, nlri, path.IsWithdraw, pattr, time.Now(), path.NoImplicitWithdraw))
+ paths = append(paths, table.NewPath(pi, nlri, path.IsWithdraw, pattr, time.Now(), path.NoImplicitWithdraw, path.IsFromOps))
}
return paths, nil
diff --git a/server/zclient.go b/server/zclient.go
index 3c3d3180..a6427781 100644
--- a/server/zclient.go
+++ b/server/zclient.go
@@ -127,7 +127,7 @@ func createPathFromIPRouteMessage(m *zebra.Message, peerInfo *table.PeerInfo) *t
med := bgp.NewPathAttributeMultiExitDisc(body.Metric)
pattr = append(pattr, med)
- p := table.NewPath(peerInfo, nlri, isWithdraw, pattr, time.Now(), false)
+ p := table.NewPath(peerInfo, nlri, isWithdraw, pattr, time.Now(), false, false)
p.SetIsFromZebra(true)
return p
}