summaryrefslogtreecommitdiffhomepage
path: root/table
diff options
context:
space:
mode:
Diffstat (limited to 'table')
-rw-r--r--table/message.go5
-rw-r--r--table/path.go2
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