summaryrefslogtreecommitdiffhomepage
path: root/table/table_manager.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-09-30 05:50:25 -0700
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-09-30 05:50:25 -0700
commitdfe1b71fd28496110436ff15bf135feec02f181e (patch)
tree9baa416de7f16cf6bf333034f43333a68a038364 /table/table_manager.go
parent8f4603b25a08046937ede81efbc3062eebf89067 (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 'table/table_manager.go')
-rw-r--r--table/table_manager.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/table/table_manager.go b/table/table_manager.go
index f6bebbf7..f93c3a54 100644
--- a/table/table_manager.go
+++ b/table/table_manager.go
@@ -164,7 +164,7 @@ func (manager *TableManager) getNextLabel() (uint32, error) {
return label, nil
}
-func (manager *TableManager) AddVrf(name string, rd bgp.RouteDistinguisherInterface, importRt, exportRt []bgp.ExtendedCommunityInterface, info *PeerInfo) ([]*Path, error) {
+func (manager *TableManager) AddVrf(name string, id uint32, rd bgp.RouteDistinguisherInterface, importRt, exportRt []bgp.ExtendedCommunityInterface, info *PeerInfo) ([]*Path, error) {
if _, ok := manager.Vrfs[name]; ok {
return nil, fmt.Errorf("vrf %s already exists", name)
}
@@ -177,6 +177,7 @@ func (manager *TableManager) AddVrf(name string, rd bgp.RouteDistinguisherInterf
}).Debugf("add vrf")
manager.Vrfs[name] = &Vrf{
Name: name,
+ Id: id,
Rd: rd,
ImportRt: importRt,
ExportRt: exportRt,