From 5d15b3f290a4305e0c8b7d651834c997d2b09910 Mon Sep 17 00:00:00 2001 From: urban Date: Tue, 20 Feb 2018 21:48:23 +0000 Subject: table: support nexthop match policy --- server/server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'server/server.go') 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 } -- cgit v1.2.3