Loading src/service/service/service_handlers/l2nm_emulated/ConfigRules.py +6 −4 Original line number Diff line number Diff line Loading @@ -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), Loading Loading @@ -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( Loading Loading
src/service/service/service_handlers/l2nm_emulated/ConfigRules.py +6 −4 Original line number Diff line number Diff line Loading @@ -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), Loading Loading @@ -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( Loading