Commit 5c94115b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

NBI component - IETF L2VPN connector:

- Fix in logic to auto-infer eth-inf-type field when possible
parent e23652b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ def process_site_network_access(
                if encapsulation_type == 'ethernet':
                    eth_inf_type = 'untagged'
                elif encapsulation_type == 'vlan':
                    eth_inf_type == 'tagged'
                    eth_inf_type = 'tagged'
        if eth_inf_type is None:
            eth_inf_type = network_access_connection.get('eth-inf-type', 'ietf-l2vpn-svc:untagged')
            eth_inf_type = eth_inf_type.replace('ietf-l2vpn-svc:', '')