Skip to content
Snippets Groups Projects
Commit 097eb53c authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component - L3NM OpenConfig:

- Rolling back malformed config rules, left backup for future integration
parent da5aa154
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!196Resolve "(CTTC) Incorrect endpoint lookup in NBI ETSI BWM plugin"
...@@ -99,18 +99,6 @@ def setup_config_rules( ...@@ -99,18 +99,6 @@ def setup_config_rules(
'protocol_name': 'STATIC', 'protocol_name': 'STATIC',
}), }),
#Associate interface to network instance
json_config_rule_set(
'/network_instance[{:s}]/interface[{:s}]'.format(network_instance_name, if_subif_name), {
'name' : network_instance_name,
'type' : 'L3VRF',
'id' : if_subif_name,
'interface' : if_subif_name,
'subinterface' : sub_interface_index,
'address_ip' : address_ip,
'address_prefix': address_prefix,
}),
#Create interface with subinterface #Create interface with subinterface
json_config_rule_set( json_config_rule_set(
'/interface[{:s}]/subinterface[{:d}]'.format(if_subif_name, sub_interface_index), { '/interface[{:s}]/subinterface[{:d}]'.format(if_subif_name, sub_interface_index), {
...@@ -124,15 +112,16 @@ def setup_config_rules( ...@@ -124,15 +112,16 @@ def setup_config_rules(
'address_prefix': address_prefix, 'address_prefix': address_prefix,
}), }),
#Associate interface to network instance
json_config_rule_set( json_config_rule_set(
'/network_instance[{:s}]/interface[{:s}]'.format(network_instance_name, self_bgp_if_name), { '/network_instance[{:s}]/interface[{:s}]'.format(network_instance_name, if_subif_name), {
'name' : network_instance_name, 'name' : network_instance_name,
'type' : 'L3VRF', 'type' : 'L3VRF',
'id' : self_bgp_if_name, 'id' : if_subif_name,
'interface' : self_bgp_if_name, 'interface' : if_subif_name,
'subinterface': bgp_sub_interface_index, 'subinterface' : sub_interface_index,
'address_ip' : self_bgp_address_ip, 'address_ip' : address_ip,
'address_prefix': bgp_address_prefix, 'address_prefix': address_prefix,
}), }),
#Create routing policy #Create routing policy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment