

def parse_trunk_native_vlan(self, interface_node, port):
    native_vlan_id_node = interface_node.xpath('native-vlan-id')
    if ((len(native_vlan_id_node) == 1) and (native_vlan_id_node[0].text is not None)):
        return resolve_new_value(interface_node, 'native-vlan-id', port.trunk_native_vlan, transformer=int)
    return port.trunk_native_vlan

dataset/ETHPy150Open internap/fake-switches/fake_switches/juniper_qfx_copper/juniper_qfx_copper_netconf_datastore.py JuniperQfxCopperNetconfDatastore.parse_trunk_native_vlan/original