diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/server.go | 6 |
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 } |