summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/policy
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-06-30 11:27:49 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-07-01 14:26:35 +0900
commit2e0ba39ce9b5d393fe64fa20d98598b8bb454d59 (patch)
tree9aadfa891a7b7b0de2026a6ac42c488ad98c0185 /test/scenario_test/policy
parentae8862599082f6bd70423df255db6f4769cad5a1 (diff)
scenario_test: add test case for distribute policy update
Diffstat (limited to 'test/scenario_test/policy')
-rw-r--r--test/scenario_test/policy/policy_generator.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/scenario_test/policy/policy_generator.go b/test/scenario_test/policy/policy_generator.go
index 0d6b433c..62dab150 100644
--- a/test/scenario_test/policy/policy_generator.go
+++ b/test/scenario_test/policy/policy_generator.go
@@ -671,7 +671,18 @@ func createPolicyConfig() *config.RoutingPolicy {
StatementList: []config.Statement{st_distribute_comm_add},
}
- ds := config.DefinedSets{
+ test_28_distribute_policy_update := config.PolicyDefinition{
+ Name: "test_28_distribute_policy_update",
+ StatementList: []config.Statement{st1},
+ }
+
+ test_28_distribute_policy_update_softreset := config.PolicyDefinition{
+ Name: "test_28_distribute_policy_update_softreset",
+ StatementList: []config.Statement{st2},
+ }
+
+
+ ds := config.DefinedSets{
PrefixSetList: []config.PrefixSet{ps0, ps1, ps2, ps3, ps4, ps5, ps6, psExabgp},
NeighborSetList: []config.NeighborSet{nsPeer2, nsPeer2V6, nsExabgp},
BgpDefinedSets: config.BgpDefinedSets{
@@ -714,6 +725,8 @@ func createPolicyConfig() *config.RoutingPolicy {
test_25_distribute_reject,
test_26_distribute_accept,
test_27_distribute_set_community_action,
+ test_28_distribute_policy_update,
+ test_28_distribute_policy_update_softreset,
},
}
return p