diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-16 16:33:53 +0900 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-01-16 18:25:18 +0900 |
commit | 0cf8045e994b653030b721c574614d46c1870cf1 (patch) | |
tree | e409864aafea90c4aa4b990fb88a4917afd2596f /server/peer.go | |
parent | 40ce51137a1bc3733d36ea045daae067eef735f0 (diff) |
policy: introduce policy option infra
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/peer.go')
-rw-r--r-- | server/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/peer.go b/server/peer.go index 5233c892..c4e09617 100644 --- a/server/peer.go +++ b/server/peer.go @@ -106,7 +106,7 @@ func (peer *Peer) getBestFromLocal(rfList []bgp.RouteFamily) ([]*table.Path, []* pathList := []*table.Path{} filtered := []*table.Path{} for _, path := range peer.localRib.GetBestPathList(peer.TableID(), rfList) { - p := peer.policy.ApplyPolicy(peer.TableID(), table.POLICY_DIRECTION_EXPORT, filterpath(peer, path)) + p := peer.policy.ApplyPolicy(peer.TableID(), table.POLICY_DIRECTION_EXPORT, filterpath(peer, path), nil) if p == nil { filtered = append(filtered, path) continue |