diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-30 05:50:25 -0700 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-30 05:50:25 -0700 |
commit | dfe1b71fd28496110436ff15bf135feec02f181e (patch) | |
tree | 9baa416de7f16cf6bf333034f43333a68a038364 /server | |
parent | 8f4603b25a08046937ede81efbc3062eebf89067 (diff) |
api: add id to VrfRequest
to support VRF ID for Zebra Protocol v3.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server.go b/server/server.go index 65b23ce8..37a4b6a9 100644 --- a/server/server.go +++ b/server/server.go @@ -1190,7 +1190,7 @@ func (s *BgpServer) GetVrf() (l []*table.Vrf) { return l } -func (s *BgpServer) AddVrf(name string, rd bgp.RouteDistinguisherInterface, im, ex []bgp.ExtendedCommunityInterface) (err error) { +func (s *BgpServer) AddVrf(name string, id uint32, rd bgp.RouteDistinguisherInterface, im, ex []bgp.ExtendedCommunityInterface) (err error) { ch := make(chan struct{}) defer func() { <-ch }() @@ -1205,7 +1205,7 @@ func (s *BgpServer) AddVrf(name string, rd bgp.RouteDistinguisherInterface, im, AS: s.bgpConfig.Global.Config.As, LocalID: net.ParseIP(s.bgpConfig.Global.Config.RouterId).To4(), } - if pathList, e := s.globalRib.AddVrf(name, rd, im, ex, pi); e != nil { + if pathList, e := s.globalRib.AddVrf(name, id, rd, im, ex, pi); e != nil { err = e } else if len(pathList) > 0 { s.propagateUpdate(nil, pathList) |