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

Service component:

- minor corrections in service handler for L2NM eMulated
parent 7ea24d44
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!24Integrate NFV-SDN'22 demo
......@@ -60,12 +60,13 @@ def setup_config_rules(
{'name': network_instance_name, 'type': 'L2VSI'}),
json_config_rule_set(
'/interface[{:s}]/subinterface[0]'.format(if_cirid_name, sub_interface_index),
'/interface[{:s}]/subinterface[{:d}]'.format(if_cirid_name, sub_interface_index),
{'name': if_cirid_name, 'type': 'l2vlan', 'index': sub_interface_index, 'vlan_id': vlan_id}),
json_config_rule_set(
'/network_instance[{:s}]/interface[{:s}]'.format(network_instance_name, if_cirid_name),
{'name': network_instance_name, 'id': if_cirid_name, 'interface': if_cirid_name, 'subinterface': 0}),
{'name': network_instance_name, 'id': if_cirid_name, 'interface': if_cirid_name,
'subinterface': sub_interface_index}),
json_config_rule_set(
'/network_instance[{:s}]/connection_point[{:s}]'.format(network_instance_name, connection_point_id),
......@@ -107,10 +108,11 @@ def teardown_config_rules(
json_config_rule_delete(
'/network_instance[{:s}]/interface[{:s}]'.format(network_instance_name, if_cirid_name),
{'name': network_instance_name, 'id': if_cirid_name, 'interface': if_cirid_name, 'subinterface': 0}),
{'name': network_instance_name, 'id': if_cirid_name, 'interface': if_cirid_name,
'subinterface': sub_interface_index}),
json_config_rule_delete(
'/interface[{:s}]/subinterface[0]'.format(if_cirid_name, sub_interface_index),
'/interface[{:s}]/subinterface[{:d}]'.format(if_cirid_name, sub_interface_index),
{'name': if_cirid_name, 'index': sub_interface_index}),
json_config_rule_delete(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment