summaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-02 00:28:32 -0700
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-11-03 02:49:59 -0700
commitc7653aa9d4276098a7a6b5ade5ffce5bf5d089e8 (patch)
treecf370204c8d50de7843871100de5585be7e59c51 /server
parentf75d45bbc4a58d21c5c6e261c7b68eac7495f107 (diff)
allow add local route with specific mpls label
Also don't allocate label for local routes. The label management needs to work with other components rather than bgp. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r--server/server.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/server/server.go b/server/server.go
index 11462869..754834e7 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1109,12 +1109,8 @@ func (server *BgpServer) fixupApiPath(vrfId string, pathList []*table.Path) erro
}
if vrfId != "" {
- label, err := server.globalRib.GetNextLabel(vrfId, path.GetNexthop().String(), path.IsWithdraw)
- if err != nil {
- return err
- }
vrf := server.globalRib.Vrfs[vrfId]
- if err := vrf.ToGlobalPath(path, label); err != nil {
+ if err := vrf.ToGlobalPath(path); err != nil {
return err
}
}