@classmethod
    def _get_interface_info(cls, device_id, network_id, external=False):
        if cls._device_network_interface_map is None:
            cls._get_network_interface_map_from_config()
        try:
            dev_info = cls._device_network_interface_map[device_id]
            if external:
                return dev_info['external'].get(network_id,
                                                dev_info['external']['*'])
            else:
                return dev_info['internal'].get(network_id,
                                                dev_info['internal']['*'])
        except (__HOLE__, KeyError):
            LOG.error(_LE('Failed to lookup interface on device %(dev)s'
                          'for network %(net)s'), {'dev': device_id,
                                                   'net': network_id})
            return
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/cisco/device_manager/plugging_drivers/hw_vlan_trunking_driver.py/HwVLANTrunkingPlugDriver._get_interface_info