Commit 2e36a4a6 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component - L3NM gNMI OpenConfig:

- Removed garbage management of parent interfaces
parent 9d62192b
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -339,18 +339,9 @@ class DeviceComposer:
        if network_instance_name != DEFAULT_NETWORK_INSTANCE:
            json_config_rule(*_network_instance(network_instance_name, 'L3VRF'))

        parent_interfaces : Set[str] = set()
        configured_parents : Set[str] = set()
        for endpoint in self.endpoints.values():
            if endpoint.objekt is None:
                continue
            parent_interfaces.add(endpoint.objekt.name)
            if not delete and endpoint.objekt.name not in configured_parents:
                config_rules.append(json_config_rule_set(*_interface(
                    endpoint.objekt.name, index=0, address_ip=None, address_prefix=None,
                    enabled=True, mtu=endpoint.mtu
                )))
                configured_parents.add(endpoint.objekt.name)
            config_rules.extend(endpoint.get_config_rules(
                network_instance_name, self.service_vlan_id,
                access_vlan_tagged=self.access_vlan_tagged, delete=delete