diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2015-07-02 17:28:15 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-07-03 06:29:07 +0900 |
commit | b7b1e18eec86ade7694a3e2ffa2d1c4e00b80006 (patch) | |
tree | 38e741497e3e5500977c5e4a35b5469be8aa33ab /table | |
parent | 6d9f671f493e03ddad3f8abd03351f35dc0381ab (diff) |
server: update path attrs when sending update msg out
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table')
-rw-r--r-- | table/message.go | 5 | ||||
-rw-r--r-- | table/path.go | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/table/message.go b/table/message.go index 7ae01152..d8bb3cff 100644 --- a/table/message.go +++ b/table/message.go @@ -17,7 +17,6 @@ package table import ( "bytes" - "github.com/osrg/gobgp/config" "github.com/osrg/gobgp/packet" ) @@ -128,10 +127,6 @@ func cloneAttrSlice(attrs []bgp.PathAttributeInterface) []bgp.PathAttributeInter return clonedAttrs } -func UpdatePathAttrs(path *Path, global *config.Global, peer *config.Neighbor) { - path.updatePathAttrs(global, peer) -} - func createUpdateMsgFromPath(path *Path, msg *bgp.BGPMessage) *bgp.BGPMessage { rf := path.GetRouteFamily() diff --git a/table/path.go b/table/path.go index 1fd15308..51be91af 100644 --- a/table/path.go +++ b/table/path.go @@ -68,7 +68,7 @@ func cloneAsPath(asAttr *bgp.PathAttributeAsPath) *bgp.PathAttributeAsPath { return bgp.NewPathAttributeAsPath(newASparams) } -func (path *Path) updatePathAttrs(global *config.Global, peer *config.Neighbor) { +func (path *Path) UpdatePathAttrs(global *config.Global, peer *config.Neighbor) { if peer.RouteServer.RouteServerClient { return |