Commit 560abc86 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Service component - L3NM gNMI OpenConfig:

- Fixed activation of parent interfaces as routed
parent e5cb0a5e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -312,7 +312,15 @@ class DeviceComposer:
        config_rules : List[Dict] = list()
        if network_instance_name != DEFAULT_NETWORK_INSTANCE:
            json_config_rule(*_network_instance(network_instance_name, 'L3VRF'))

        parent_interfaces : Set[str] = set()
        for endpoint in self.endpoints.values():
            if not delete and endpoint.objekt is not None:
                if endpoint.objekt.name not in parent_interfaces:
                    config_rules.append(json_config_rule_set(*_interface(
                        endpoint.objekt.name, index=0, address_ip=None, address_prefix=None, enabled=True
                    )))
                    parent_interfaces.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