From 553e78124fff57cbe8404445de759091ae92424b Mon Sep 17 00:00:00 2001 From: Prakash Bailkeri Date: Wed, 3 Feb 2016 11:07:35 +0530 Subject: [PATCH] Routing policy schema update Remove usage of keywords from schema Suffix Type to each type def Change-Id: If5a2ffda5cebbbd49a3bbf4be296083e0e117ee2 Related-bug: #1500698 --- src/bgp/bgp_config_ifmap.cc | 34 ++++++++--------- src/bgp/bgp_config_parser.cc | 4 +- src/bgp/testdata/config_listener_test_10.xml | 8 ++-- src/bgp/testdata/config_listener_test_11.xml | 8 ++-- src/bgp/testdata/config_listener_test_14.xml | 16 ++++---- src/bgp/testdata/config_listener_test_9.xml | 20 +++++----- src/bgp/testdata/routing_policy_0.xml | 18 ++++----- src/bgp/testdata/routing_policy_0a.xml | 8 ++-- src/bgp/testdata/routing_policy_0b.xml | 16 ++++---- src/bgp/testdata/routing_policy_0c.xml | 10 ++--- src/bgp/testdata/routing_policy_0d.xml | 10 ++--- src/bgp/testdata/routing_policy_0e.xml | 8 ++-- src/bgp/testdata/routing_policy_0f.xml | 8 ++-- src/bgp/testdata/routing_policy_0g.xml | 8 ++-- src/bgp/testdata/routing_policy_0h.xml | 8 ++-- src/bgp/testdata/routing_policy_1.xml | 16 ++++---- src/bgp/testdata/routing_policy_1a.xml | 16 ++++---- src/bgp/testdata/routing_policy_1b.xml | 4 +- src/bgp/testdata/routing_policy_2.xml | 30 +++++++-------- src/bgp/testdata/routing_policy_2a.xml | 28 +++++++------- src/bgp/testdata/routing_policy_2b.xml | 10 ++--- src/bgp/testdata/routing_policy_2c.xml | 10 ++--- src/bgp/testdata/routing_policy_2d.xml | 10 ++--- src/bgp/testdata/routing_policy_2e.xml | 10 ++--- src/bgp/testdata/routing_policy_2f.xml | 10 ++--- src/bgp/testdata/routing_policy_2g.xml | 10 ++--- src/bgp/testdata/routing_policy_3.xml | 8 ++-- src/bgp/testdata/routing_policy_3a.xml | 16 ++++---- src/bgp/testdata/routing_policy_3d.xml | 16 ++++---- src/bgp/testdata/routing_policy_4.xml | 16 ++++---- src/bgp/testdata/routing_policy_4a.xml | 16 ++++---- src/bgp/testdata/routing_policy_4b.xml | 16 ++++---- src/bgp/testdata/routing_policy_4c.xml | 16 ++++---- src/bgp/testdata/routing_policy_4d.xml | 16 ++++---- src/bgp/testdata/routing_policy_5.xml | 10 ++--- src/bgp/testdata/routing_policy_5a.xml | 10 ++--- src/bgp/testdata/routing_policy_5b.xml | 10 ++--- src/bgp/testdata/routing_policy_6.xml | 28 +++++++------- src/bgp/testdata/routing_policy_6a.xml | 26 ++++++------- src/bgp/testdata/routing_policy_6b.xml | 18 ++++----- src/bgp/testdata/routing_policy_6c.xml | 40 ++++++++++---------- src/bgp/testdata/routing_policy_7.xml | 10 ++--- src/bgp/testdata/routing_policy_7a.xml | 10 ++--- src/bgp/testdata/routing_policy_7b.xml | 20 +++++----- src/bgp/testdata/routing_policy_7c.xml | 10 ++--- src/bgp/testdata/routing_policy_7d.xml | 10 ++--- src/bgp/testdata/routing_policy_7e.xml | 10 ++--- src/bgp/testdata/routing_policy_7f.xml | 10 ++--- src/bgp/testdata/routing_policy_7g.xml | 10 ++--- src/bgp/testdata/routing_policy_7h.xml | 8 ++-- src/bgp/testdata/routing_policy_8.xml | 10 ++--- src/schema/routing_policy.xsd | 38 +++++++++---------- 52 files changed, 373 insertions(+), 373 deletions(-) diff --git a/src/bgp/bgp_config_ifmap.cc b/src/bgp/bgp_config_ifmap.cc index 9d78a3922cb..f26c35a85f4 100644 --- a/src/bgp/bgp_config_ifmap.cc +++ b/src/bgp/bgp_config_ifmap.cc @@ -1567,45 +1567,45 @@ void BgpIfmapRoutingPolicyConfig::RemoveInstance(BgpIfmapInstanceConfig *rti) { } -static void BuildPolicyTerm(autogen::PolicyTerm cfg_term, +static void BuildPolicyTerm(autogen::PolicyTermType cfg_term, RoutingPolicyTerm *term) { - term->match.protocols_match = cfg_term.fromxx.protocol; - term->match.community_match = cfg_term.fromxx.community; - BOOST_FOREACH(const autogen::PrefixMatch &prefix_match, - cfg_term.fromxx.prefix) { + term->match.protocols_match = cfg_term.term_match_condition.protocol; + term->match.community_match = cfg_term.term_match_condition.community; + BOOST_FOREACH(const autogen::PrefixMatchType &prefix_match, + cfg_term.term_match_condition.prefix) { PrefixMatchConfig match; match.prefix_to_match = prefix_match.prefix; - match.prefix_match_type = - prefix_match.type_.empty() ? "exact" : prefix_match.type_; + match.prefix_match_type = prefix_match.prefix_type.empty() ? + "exact" : prefix_match.prefix_type; term->match.prefixes_to_match.push_back(match); } BOOST_FOREACH(const std::string community, - cfg_term.then.update.community.add.community) { + cfg_term.term_action_list.update.community.add.community) { term->action.update.community_add.push_back(community); } BOOST_FOREACH(const std::string community, - cfg_term.then.update.community.remove.community) { + cfg_term.term_action_list.update.community.remove.community) { term->action.update.community_remove.push_back(community); } BOOST_FOREACH(const std::string community, - cfg_term.then.update.community.set.community) { + cfg_term.term_action_list.update.community.set.community) { term->action.update.community_set.push_back(community); } - term->action.update.local_pref = cfg_term.then.update.local_pref; - term->action.update.med = cfg_term.then.update.med; + term->action.update.local_pref = + cfg_term.term_action_list.update.local_pref; + term->action.update.med = cfg_term.term_action_list.update.med; term->action.action = RoutingPolicyActionConfig::NEXT_TERM; - if (strcmp(cfg_term.then.action.c_str(), "reject") == 0) { + if (strcmp(cfg_term.term_action_list.action.c_str(), "reject") == 0) term->action.action = RoutingPolicyActionConfig::REJECT; - } else if (strcmp(cfg_term.then.action.c_str(), "accept") == 0) { + else if (strcmp(cfg_term.term_action_list.action.c_str(), "accept") == 0) term->action.action = RoutingPolicyActionConfig::ACCEPT; - } } static void BuildPolicyTerms(BgpRoutingPolicyConfig *policy_cfg, const autogen::RoutingPolicy *policy) { - std::vector terms = policy->entries(); - BOOST_FOREACH(autogen::PolicyTerm cfg_term, terms) { + std::vector terms = policy->entries(); + BOOST_FOREACH(autogen::PolicyTermType cfg_term, terms) { RoutingPolicyTerm policy_term; BuildPolicyTerm(cfg_term, &policy_term); policy_cfg->add_term(policy_term); diff --git a/src/bgp/bgp_config_parser.cc b/src/bgp/bgp_config_parser.cc index 950d2784161..13dea4688ad 100644 --- a/src/bgp/bgp_config_parser.cc +++ b/src/bgp/bgp_config_parser.cc @@ -600,8 +600,8 @@ bool BgpConfigParser::ParseRoutingPolicy(const xml_node &node, string policy_name(node.attribute("name").value()); assert(!policy_name.empty()); - auto_ptr policy_statement( - new autogen::PolicyStatement()); + auto_ptr policy_statement( + new autogen::PolicyStatementType()); assert(policy_statement->XmlParse(node)); if (add_change) { diff --git a/src/bgp/testdata/config_listener_test_10.xml b/src/bgp/testdata/config_listener_test_10.xml index 304df61bdfd..d9a92d5b988 100644 --- a/src/bgp/testdata/config_listener_test_10.xml +++ b/src/bgp/testdata/config_listener_test_10.xml @@ -2,15 +2,15 @@ - + 23:13 - - + + 102 accept - + diff --git a/src/bgp/testdata/config_listener_test_11.xml b/src/bgp/testdata/config_listener_test_11.xml index a77c079d6ec..7be696e5fe4 100644 --- a/src/bgp/testdata/config_listener_test_11.xml +++ b/src/bgp/testdata/config_listener_test_11.xml @@ -3,12 +3,12 @@ - + 23:13 - - + + accept - + diff --git a/src/bgp/testdata/config_listener_test_14.xml b/src/bgp/testdata/config_listener_test_14.xml index ef40388e24f..85176c9ff35 100644 --- a/src/bgp/testdata/config_listener_test_14.xml +++ b/src/bgp/testdata/config_listener_test_14.xml @@ -2,22 +2,22 @@ - + 23:13 - - + + accept - + - + 11:13 - - + + accept - + diff --git a/src/bgp/testdata/config_listener_test_9.xml b/src/bgp/testdata/config_listener_test_9.xml index fa10c924190..2b4fe785876 100644 --- a/src/bgp/testdata/config_listener_test_9.xml +++ b/src/bgp/testdata/config_listener_test_9.xml @@ -2,33 +2,33 @@ - + 23:13 1/8 - orlonger + orlonger - - + + 102 accept - + - + 23:11 2001:db8:85a3:aaaa::b:c:d/64 - longer + longer - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_0.xml b/src/bgp/testdata/routing_policy_0.xml index e2b6911a57d..7b4e90dad68 100644 --- a/src/bgp/testdata/routing_policy_0.xml +++ b/src/bgp/testdata/routing_policy_0.xml @@ -2,26 +2,26 @@ - + 10.0.1.1/32 - exact + exact - - + + 102 accept - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_0a.xml b/src/bgp/testdata/routing_policy_0a.xml index 0862ed8427d..93bfd5f4641 100644 --- a/src/bgp/testdata/routing_policy_0a.xml +++ b/src/bgp/testdata/routing_policy_0a.xml @@ -2,12 +2,12 @@ - + 11:13 - - + + accept - + diff --git a/src/bgp/testdata/routing_policy_0b.xml b/src/bgp/testdata/routing_policy_0b.xml index d8b292fccdb..53f03d817c3 100644 --- a/src/bgp/testdata/routing_policy_0b.xml +++ b/src/bgp/testdata/routing_policy_0b.xml @@ -2,20 +2,20 @@ - + 11:13 - - + + accept - + - + 22:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_0c.xml b/src/bgp/testdata/routing_policy_0c.xml index a5df285da25..8efeee20908 100644 --- a/src/bgp/testdata/routing_policy_0c.xml +++ b/src/bgp/testdata/routing_policy_0c.xml @@ -2,21 +2,21 @@ - + 2001:db8:85a3::8a2e:370:7335/128 - exact + exact 11:13 - - + + 11:22 300 - + diff --git a/src/bgp/testdata/routing_policy_0d.xml b/src/bgp/testdata/routing_policy_0d.xml index 867b236e7a9..654bb271f87 100644 --- a/src/bgp/testdata/routing_policy_0d.xml +++ b/src/bgp/testdata/routing_policy_0d.xml @@ -2,21 +2,21 @@ - + 10.0.1.1/32 20.1.1.0/24 - longer + longer - - + + 102 accept - + diff --git a/src/bgp/testdata/routing_policy_0e.xml b/src/bgp/testdata/routing_policy_0e.xml index 2314a8e6d03..bc62b41626c 100644 --- a/src/bgp/testdata/routing_policy_0e.xml +++ b/src/bgp/testdata/routing_policy_0e.xml @@ -2,16 +2,16 @@ - + bgp xmpp - - + + 102 accept - + diff --git a/src/bgp/testdata/routing_policy_0f.xml b/src/bgp/testdata/routing_policy_0f.xml index 42b7a265250..2f78fe4861a 100644 --- a/src/bgp/testdata/routing_policy_0f.xml +++ b/src/bgp/testdata/routing_policy_0f.xml @@ -8,15 +8,15 @@ - + service-chain - - + + 102 accept - + diff --git a/src/bgp/testdata/routing_policy_0g.xml b/src/bgp/testdata/routing_policy_0g.xml index 774f744deec..828896e9bd1 100644 --- a/src/bgp/testdata/routing_policy_0g.xml +++ b/src/bgp/testdata/routing_policy_0g.xml @@ -2,17 +2,17 @@ - + service-chain bgp xmpp - - + + 999 accept - + diff --git a/src/bgp/testdata/routing_policy_0h.xml b/src/bgp/testdata/routing_policy_0h.xml index c9874751aa7..9ac5a41ec30 100644 --- a/src/bgp/testdata/routing_policy_0h.xml +++ b/src/bgp/testdata/routing_policy_0h.xml @@ -2,15 +2,15 @@ - + static - - + + 102 accept - + diff --git a/src/bgp/testdata/routing_policy_1.xml b/src/bgp/testdata/routing_policy_1.xml index c2cd44a15e2..c292468ccf0 100644 --- a/src/bgp/testdata/routing_policy_1.xml +++ b/src/bgp/testdata/routing_policy_1.xml @@ -2,25 +2,25 @@ - + 23:13 - - + + 102 accept - + - + 23:11 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_1a.xml b/src/bgp/testdata/routing_policy_1a.xml index 0e35bf0f84d..001b58369f0 100644 --- a/src/bgp/testdata/routing_policy_1a.xml +++ b/src/bgp/testdata/routing_policy_1a.xml @@ -2,25 +2,25 @@ - + 23:13 - - + + 102 accept - + - + 23:11 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_1b.xml b/src/bgp/testdata/routing_policy_1b.xml index b4c530d860b..af5758a6398 100644 --- a/src/bgp/testdata/routing_policy_1b.xml +++ b/src/bgp/testdata/routing_policy_1b.xml @@ -2,11 +2,11 @@ - + 1234 - + diff --git a/src/bgp/testdata/routing_policy_2.xml b/src/bgp/testdata/routing_policy_2.xml index 1d448b10bbb..68c556d83ae 100644 --- a/src/bgp/testdata/routing_policy_2.xml +++ b/src/bgp/testdata/routing_policy_2.xml @@ -2,45 +2,45 @@ - + 3.1.0.0/16 - longer + longer - - + + 102 accept - + - + 3.1.1.1/32 - exact + exact - - + + reject - + - + 1/8 - orlonger + orlonger - - + + 11:44 accept - + diff --git a/src/bgp/testdata/routing_policy_2a.xml b/src/bgp/testdata/routing_policy_2a.xml index 7b219dde263..249629c9a0b 100644 --- a/src/bgp/testdata/routing_policy_2a.xml +++ b/src/bgp/testdata/routing_policy_2a.xml @@ -2,40 +2,40 @@ - + 102 - + - + 3.1.1.1 - exact + exact - - + + reject - + - + 1/8 - orlonger + orlonger - - + + reject - + - + 103 - + diff --git a/src/bgp/testdata/routing_policy_2b.xml b/src/bgp/testdata/routing_policy_2b.xml index 15809284746..f9776ffe731 100644 --- a/src/bgp/testdata/routing_policy_2b.xml +++ b/src/bgp/testdata/routing_policy_2b.xml @@ -2,20 +2,20 @@ - + 1/8 - orlonger + orlonger - - + + 11:13 accept - + diff --git a/src/bgp/testdata/routing_policy_2c.xml b/src/bgp/testdata/routing_policy_2c.xml index 611d08a9f59..46ff988da96 100644 --- a/src/bgp/testdata/routing_policy_2c.xml +++ b/src/bgp/testdata/routing_policy_2c.xml @@ -2,20 +2,20 @@ - + 1/8 - orlonger + orlonger - - + + 11:13 accept - + diff --git a/src/bgp/testdata/routing_policy_2d.xml b/src/bgp/testdata/routing_policy_2d.xml index 5c010b5a2f9..d144f9b6517 100644 --- a/src/bgp/testdata/routing_policy_2d.xml +++ b/src/bgp/testdata/routing_policy_2d.xml @@ -2,13 +2,13 @@ - + 1/8 - orlonger + orlonger - - + + @@ -19,7 +19,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_2e.xml b/src/bgp/testdata/routing_policy_2e.xml index 506fbcc4471..cf25bc62ff7 100644 --- a/src/bgp/testdata/routing_policy_2e.xml +++ b/src/bgp/testdata/routing_policy_2e.xml @@ -2,13 +2,13 @@ - + 1/8 - orlonger + orlonger - - + + @@ -19,7 +19,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_2f.xml b/src/bgp/testdata/routing_policy_2f.xml index 0f2c7f31faa..e0f8e06e071 100644 --- a/src/bgp/testdata/routing_policy_2f.xml +++ b/src/bgp/testdata/routing_policy_2f.xml @@ -2,13 +2,13 @@ - + 1/8 - orlonger + orlonger - - + + @@ -19,7 +19,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_2g.xml b/src/bgp/testdata/routing_policy_2g.xml index a2a9fa753d7..1c220225b96 100644 --- a/src/bgp/testdata/routing_policy_2g.xml +++ b/src/bgp/testdata/routing_policy_2g.xml @@ -2,13 +2,13 @@ - + 1/8 - orlonger + orlonger - - + + @@ -20,7 +20,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_3.xml b/src/bgp/testdata/routing_policy_3.xml index c56de6cc390..13a341ae74d 100644 --- a/src/bgp/testdata/routing_policy_3.xml +++ b/src/bgp/testdata/routing_policy_3.xml @@ -2,12 +2,12 @@ - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_3a.xml b/src/bgp/testdata/routing_policy_3a.xml index e76fa39adbe..0038634c5ec 100644 --- a/src/bgp/testdata/routing_policy_3a.xml +++ b/src/bgp/testdata/routing_policy_3a.xml @@ -2,22 +2,22 @@ - + 22:13 - - + + reject - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_3d.xml b/src/bgp/testdata/routing_policy_3d.xml index e163b34d921..d8067d93e82 100644 --- a/src/bgp/testdata/routing_policy_3d.xml +++ b/src/bgp/testdata/routing_policy_3d.xml @@ -2,22 +2,22 @@ - + 22:13 - - + + reject - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_4.xml b/src/bgp/testdata/routing_policy_4.xml index e76fa39adbe..0038634c5ec 100644 --- a/src/bgp/testdata/routing_policy_4.xml +++ b/src/bgp/testdata/routing_policy_4.xml @@ -2,22 +2,22 @@ - + 22:13 - - + + reject - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_4a.xml b/src/bgp/testdata/routing_policy_4a.xml index a855e0ee270..265f6d6d8af 100644 --- a/src/bgp/testdata/routing_policy_4a.xml +++ b/src/bgp/testdata/routing_policy_4a.xml @@ -2,22 +2,22 @@ - + 22:13 - - + + accept - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_4b.xml b/src/bgp/testdata/routing_policy_4b.xml index cbebbf04c3a..6f59dadf3e5 100644 --- a/src/bgp/testdata/routing_policy_4b.xml +++ b/src/bgp/testdata/routing_policy_4b.xml @@ -2,22 +2,22 @@ - + 22:13 - - + + accept - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_4c.xml b/src/bgp/testdata/routing_policy_4c.xml index fb9064a98cf..34a06f544fe 100644 --- a/src/bgp/testdata/routing_policy_4c.xml +++ b/src/bgp/testdata/routing_policy_4c.xml @@ -2,26 +2,26 @@ - + 22:13 - - + + 11:22 - + - + 11:13 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_4d.xml b/src/bgp/testdata/routing_policy_4d.xml index 0ab99a4eace..5c22c86b227 100644 --- a/src/bgp/testdata/routing_policy_4d.xml +++ b/src/bgp/testdata/routing_policy_4d.xml @@ -2,30 +2,30 @@ - + 22:13 - - + + 11:22 - + - + 11:13 - - + + 22:44 - + diff --git a/src/bgp/testdata/routing_policy_5.xml b/src/bgp/testdata/routing_policy_5.xml index 3bdd5069d6b..1f936557b1b 100644 --- a/src/bgp/testdata/routing_policy_5.xml +++ b/src/bgp/testdata/routing_policy_5.xml @@ -2,13 +2,13 @@ - + 1/8 - longer + longer - - + + @@ -19,7 +19,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_5a.xml b/src/bgp/testdata/routing_policy_5a.xml index dd3e1251038..fc47808c962 100644 --- a/src/bgp/testdata/routing_policy_5a.xml +++ b/src/bgp/testdata/routing_policy_5a.xml @@ -2,13 +2,13 @@ - + 1.1.1.1/32 - exact + exact - - + + @@ -19,7 +19,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_5b.xml b/src/bgp/testdata/routing_policy_5b.xml index 64d3ffbb388..7a8212d44fa 100644 --- a/src/bgp/testdata/routing_policy_5b.xml +++ b/src/bgp/testdata/routing_policy_5b.xml @@ -3,13 +3,13 @@ - + 1.1.0.0/16 - exact + exact - - + + @@ -20,7 +20,7 @@ accept - + diff --git a/src/bgp/testdata/routing_policy_6.xml b/src/bgp/testdata/routing_policy_6.xml index 3adcfb4b933..e30986eaad9 100644 --- a/src/bgp/testdata/routing_policy_6.xml +++ b/src/bgp/testdata/routing_policy_6.xml @@ -2,46 +2,46 @@ - + 1.1.1.1/32 - exact + exact - - + + 11:22 - + - + 11:13 - - + + 22:44 - + - + 1.1.0.0/16 - longer + longer - - + + 44:88 - + diff --git a/src/bgp/testdata/routing_policy_6a.xml b/src/bgp/testdata/routing_policy_6a.xml index 7934c3d70f2..1bf64893a35 100644 --- a/src/bgp/testdata/routing_policy_6a.xml +++ b/src/bgp/testdata/routing_policy_6a.xml @@ -2,43 +2,43 @@ - + 1.1.1.1/32 - exact + exact - - + + 11:22 - + - + 11:22 - - + + 22:44 - + - + 22:44 - - + + 44:88 - + diff --git a/src/bgp/testdata/routing_policy_6b.xml b/src/bgp/testdata/routing_policy_6b.xml index ae9adeac1ab..5ba2fbf4867 100644 --- a/src/bgp/testdata/routing_policy_6b.xml +++ b/src/bgp/testdata/routing_policy_6b.xml @@ -2,27 +2,27 @@ - + 1.1.1.1/32 - exact + exact - - + + 11:22 - + - + 11:22 - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_6c.xml b/src/bgp/testdata/routing_policy_6c.xml index b754db48b74..f8dbd5254a2 100644 --- a/src/bgp/testdata/routing_policy_6c.xml +++ b/src/bgp/testdata/routing_policy_6c.xml @@ -2,20 +2,20 @@ - + 1.1.1.1/32 - exact + exact 4.4.4.4/32 5.5.5.5/32 - exact + exact - - + + 500 @@ -23,47 +23,47 @@ accept - + - + 11:13 - - + + 400 22:44 - + - + 1.1.0.0/16 - longer + longer - - + + 300 44:88 - + - + 2001:db8:85a3::/64 - orlonger + orlonger - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_7.xml b/src/bgp/testdata/routing_policy_7.xml index 9144445d542..05c99b413cf 100644 --- a/src/bgp/testdata/routing_policy_7.xml +++ b/src/bgp/testdata/routing_policy_7.xml @@ -2,19 +2,19 @@ - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact - - + + 11:22 - + diff --git a/src/bgp/testdata/routing_policy_7a.xml b/src/bgp/testdata/routing_policy_7a.xml index d0d9c73bd64..6a2f66d139c 100644 --- a/src/bgp/testdata/routing_policy_7a.xml +++ b/src/bgp/testdata/routing_policy_7a.xml @@ -2,19 +2,19 @@ - + 1.1.1.1/32 - exact + exact - - + + 11:22 - + diff --git a/src/bgp/testdata/routing_policy_7b.xml b/src/bgp/testdata/routing_policy_7b.xml index 1741aff6622..a39aa1579d2 100644 --- a/src/bgp/testdata/routing_policy_7b.xml +++ b/src/bgp/testdata/routing_policy_7b.xml @@ -2,34 +2,34 @@ - + 1.1.1.1/32 - exact + exact - - + + 11:22 - + - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact - - + + 11:22 - + diff --git a/src/bgp/testdata/routing_policy_7c.xml b/src/bgp/testdata/routing_policy_7c.xml index ee760d3e483..23229d2b5d8 100644 --- a/src/bgp/testdata/routing_policy_7c.xml +++ b/src/bgp/testdata/routing_policy_7c.xml @@ -2,20 +2,20 @@ - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact 11:13 - - + + 11:22 - + diff --git a/src/bgp/testdata/routing_policy_7d.xml b/src/bgp/testdata/routing_policy_7d.xml index fac6bc07f96..28570d2d402 100644 --- a/src/bgp/testdata/routing_policy_7d.xml +++ b/src/bgp/testdata/routing_policy_7d.xml @@ -2,21 +2,21 @@ - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact 11:13 - - + + 11:22 999 - + diff --git a/src/bgp/testdata/routing_policy_7e.xml b/src/bgp/testdata/routing_policy_7e.xml index 0cffb87d6be..70c9786f9ff 100644 --- a/src/bgp/testdata/routing_policy_7e.xml +++ b/src/bgp/testdata/routing_policy_7e.xml @@ -2,19 +2,19 @@ - + 2001:db8:85a3::/64 - longer + longer - - + + 33:66 - + diff --git a/src/bgp/testdata/routing_policy_7f.xml b/src/bgp/testdata/routing_policy_7f.xml index 30ab7cb60f7..7883dbb15db 100644 --- a/src/bgp/testdata/routing_policy_7f.xml +++ b/src/bgp/testdata/routing_policy_7f.xml @@ -2,15 +2,15 @@ - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact - - + + reject - + diff --git a/src/bgp/testdata/routing_policy_7g.xml b/src/bgp/testdata/routing_policy_7g.xml index 00e36d35133..f432f448f4f 100644 --- a/src/bgp/testdata/routing_policy_7g.xml +++ b/src/bgp/testdata/routing_policy_7g.xml @@ -2,19 +2,19 @@ - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact - - + + 44:22 - + diff --git a/src/bgp/testdata/routing_policy_7h.xml b/src/bgp/testdata/routing_policy_7h.xml index 040fdda9ba8..933ca668e43 100644 --- a/src/bgp/testdata/routing_policy_7h.xml +++ b/src/bgp/testdata/routing_policy_7h.xml @@ -2,15 +2,15 @@ - + 23:13 - - + + 102 accept - + diff --git a/src/bgp/testdata/routing_policy_8.xml b/src/bgp/testdata/routing_policy_8.xml index c207104909f..39336d5535c 100644 --- a/src/bgp/testdata/routing_policy_8.xml +++ b/src/bgp/testdata/routing_policy_8.xml @@ -2,19 +2,19 @@ - + 2001:db8:85a3::8a2e:370:7334/128 - exact + exact - - + + 11:22 - + diff --git a/src/schema/routing_policy.xsd b/src/schema/routing_policy.xsd index 1cc0570c538..92003bd7d36 100644 --- a/src/schema/routing_policy.xsd +++ b/src/schema/routing_policy.xsd @@ -6,12 +6,12 @@ xmlns:smi="urn:ietf:params:xml:ns:opsawg:smi:base:1.0"> - + - - + + @@ -26,24 +26,24 @@ - + - - + + - - + + - + @@ -61,19 +61,19 @@ - - - + + + - - - - + + + + - - - + + +