diff options
author | urban <bodozoglou@gmail.com> | 2018-02-20 21:48:23 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-06-05 19:57:21 +0900 |
commit | 5d15b3f290a4305e0c8b7d651834c997d2b09910 (patch) | |
tree | bce6c7e82f8a2c9f1d400ffeabbb3f791a989e68 /server/server.go | |
parent | 5c506b6db14dac32e60bb2f880faf6317ede46e6 (diff) |
table: support nexthop match policy
Diffstat (limited to 'server/server.go')
-rw-r--r-- | server/server.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/server.go b/server/server.go index a15c342b..b190205f 100644 --- a/server/server.go +++ b/server/server.go @@ -531,11 +531,12 @@ func (s *BgpServer) filterpath(peer *Peer, path, old *table.Path) *table.Path { return nil } - path = table.UpdatePathAttrs(peer.fsm.gConf, peer.fsm.pConf, peer.fsm.peerInfo, path) - options := &table.PolicyOptions{ - Info: peer.fsm.peerInfo, + Info: peer.fsm.peerInfo, + OldNextHop: path.GetNexthop(), } + path = table.UpdatePathAttrs(peer.fsm.gConf, peer.fsm.pConf, peer.fsm.peerInfo, path) + if v := s.roaManager.validate(path); v != nil { options.ValidationResult = v } |