diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-04 20:20:51 +0900 |
---|---|---|
committer | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-04 20:34:24 +0900 |
commit | 064c8834e94349f611be6e9555ec355bd1aef351 (patch) | |
tree | c03880a8ac4de1fa37856075fb8ebe14a8e8b21b /test/scenario_test/policy | |
parent | 9914904631b942af6863eb4db1064549aa8e32fe (diff) |
scenario_test: add test in the case of setting only the prefix condition
Diffstat (limited to 'test/scenario_test/policy')
-rw-r--r-- | test/scenario_test/policy/policy_generator.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/scenario_test/policy/policy_generator.go b/test/scenario_test/policy/policy_generator.go index abf0fc0f..d1a32299 100644 --- a/test/scenario_test/policy/policy_generator.go +++ b/test/scenario_test/policy/policy_generator.go @@ -313,6 +313,8 @@ func createPolicyConfig() *config.RoutingPolicy { st_eComTarget := createStatement("st_eComRegExp", "psExabgp", "nsExabgp", false) st_eComTarget.Conditions.BgpConditions.MatchExtCommunitySet.ExtCommunitySet = "eComTarget" + st_only_prefix_condition_accept := createStatement("st_only_prefix_condition_accept", "psExabgp", "", true) + test_01_import_policy_initial := config.PolicyDefinition{ Name: "test_01_import_policy_initial", Statements: config.Statements{ @@ -635,6 +637,13 @@ func createPolicyConfig() *config.RoutingPolicy { }, } + test_42_only_prefix_condition_accept := config.PolicyDefinition{ + Name: "test_42_only_prefix_condition_accept", + Statements : config.Statements{ + StatementList: []config.Statement{st_only_prefix_condition_accept}, + }, + } + ds := config.DefinedSets{} ds.PrefixSets.PrefixSetList = []config.PrefixSet{ps0, ps1, ps2, ps3, ps4, ps5, ps6, psExabgp} ds.NeighborSets.NeighborSetList = []config.NeighborSet{nsPeer2, nsPeer2V6, nsExabgp} @@ -692,6 +701,7 @@ func createPolicyConfig() *config.RoutingPolicy { test_39_aspath_prepend_action_lastas_export, test_40_ecommunity_origin_condition_import, test_41_ecommunity_target_condition_export, + test_42_only_prefix_condition_accept, }, }, } |