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
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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(