From 2f1e599c75b3954d798d16e6c924bc38fc61dbea Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Mon, 17 Aug 2015 17:03:20 +0900 Subject: vrf: advertise route-target constraint routes when adding a vrf partial implementation of RFC4686 Signed-off-by: ISHIDA Wataru --- server/server.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/server.go') 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 } -- cgit v1.2.3