summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-08-17 17:03:20 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-08-19 13:29:33 +0900
commit2f1e599c75b3954d798d16e6c924bc38fc61dbea (patch)
tree082e9a698e324485fb56c36a5cfbf3f2c103e929 /server/server.go
parent79ed96fdc1a171de4b13108c7ca9c154d6d7fcd4 (diff)
vrf: advertise route-target constraint routes when adding a vrf
partial implementation of RFC4686 Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go
index db1ce6d7..063431d6 100644
--- a/server/server.go
+++ b/server/server.go
@@ -992,7 +992,11 @@ func (server *BgpServer) handleVrfMod(arg *api.ModVrfArguments) ([]*table.Path,
if err != nil {
return nil, err
}
- err = manager.AddVrf(arg.Vrf.Name, rd, importRt, exportRt)
+ pi := &table.PeerInfo{
+ AS: server.bgpConfig.Global.GlobalConfig.As,
+ LocalID: server.bgpConfig.Global.GlobalConfig.RouterId,
+ }
+ msgs, err = manager.AddVrf(arg.Vrf.Name, rd, importRt, exportRt, pi)
if err != nil {
return nil, err
}