From 70434c96d21adef5b71041297009e60e89c91b45 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Tue, 17 May 2016 01:26:43 +0000 Subject: policy: add support setting self ip address as next-hop from configuration file [policy-definitions.statements.actions.bgp-actions] set-next-hop = "self" from cli $ gobgp policy statement stmt1 add action next-hop self Signed-off-by: ISHIDA Wataru --- server/peer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/peer.go') diff --git a/server/peer.go b/server/peer.go index 1baee6cb..966f77d3 100644 --- a/server/peer.go +++ b/server/peer.go @@ -157,7 +157,7 @@ func (peer *Peer) filterpath(path *table.Path) *table.Path { path.UpdatePathAttrs(peer.fsm.gConf, peer.fsm.pConf) } options := &table.PolicyOptions{ - Neighbor: peer.fsm.peerInfo.Address, + Info: peer.fsm.peerInfo, } path = peer.policy.ApplyPolicy(peer.TableID(), table.POLICY_DIRECTION_EXPORT, path, options) -- cgit v1.2.3