summaryrefslogtreecommitdiffhomepage
path: root/table/destination_test.go
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2016-05-17 01:26:43 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-05-26 23:19:04 +0900
commit70434c96d21adef5b71041297009e60e89c91b45 (patch)
treeddc6a0cd3591284aa518b63ed008ec3b38176f3e /table/destination_test.go
parent1e47e4f6674b8156fed6efa602166d155c7734f7 (diff)
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 <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/destination_test.go')
-rw-r--r--table/destination_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/table/destination_test.go b/table/destination_test.go
index 275c4473..690cfe6b 100644
--- a/table/destination_test.go
+++ b/table/destination_test.go
@@ -82,7 +82,7 @@ func TestCalculate(t *testing.T) {
repeat: 10,
}
- path2 := action.Apply(path1.Clone(false))
+ path2 := action.Apply(path1.Clone(false), nil)
path1.Filter("2", POLICY_DIRECTION_IMPORT)
path2.Filter("1", POLICY_DIRECTION_IMPORT)
@@ -179,7 +179,7 @@ func TestImplicitWithdrawCalculate(t *testing.T) {
repeat: 1,
}
- path2 := action.Apply(path1.Clone(false))
+ path2 := action.Apply(path1.Clone(false), nil)
path1.Filter("2", POLICY_DIRECTION_IMPORT)
path2.Filter("1", POLICY_DIRECTION_IMPORT)
path2.Filter("3", POLICY_DIRECTION_IMPORT)