diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-10-04 04:15:52 +0000 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-10-04 04:15:52 +0000 |
commit | bdcb16900e2a96397e2e0b87b390da64b73e43ff (patch) | |
tree | 9f1ebffdd5ddddeefc7117b4cc512187b09284ea /server/server.go | |
parent | c2ad9462d661133a72c81da73a1c964390c93001 (diff) |
server: stop appending 0 in Path.VrfIds
specifying VrfId is not mandatory
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/server.go b/server/server.go index e51ba977..1d36720b 100644 --- a/server/server.go +++ b/server/server.go @@ -415,7 +415,7 @@ func (server *BgpServer) notifyBestWatcher(best map[string][]*table.Path, multip switch p.GetRouteFamily() { case bgp.RF_IPv4_VPN, bgp.RF_IPv6_VPN: for _, vrf := range server.globalRib.Vrfs { - if table.CanImportToVrf(vrf, p) { + if vrf.Id != 0 && table.CanImportToVrf(vrf, p) { p.VrfIds = append(p.VrfIds, uint16(vrf.Id)) } } |