

def _get_interface_details(self, interface_name):
    interface_descriptor = namedtuple('InterfaceDescriptor', 'interface port_prefix port')
    re_port_number = re.compile('(\\d/[a-zA-Z]+)(\\d+)')
    (interface, slot_descriptor) = interface_name.split(' ')
    (port_prefix, port) = re_port_number.match(slot_descriptor).groups()
    return interface(interface, port_prefix, int(port))

dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py DellEnabledCommandProcessor._get_interface_details/VarMisuse@61/111 `interface_descriptor`->`interface`