

def get_interfaces_status_output(self):
    output_lines = ['', 'Port   Type                            Duplex  Speed    Neg  Link  Flow Control', '                                                             State Status', '-----  ------------------------------  ------  -------  ---- --------- ------------']
    interfaces = []
    bonds = []
    for port in self.switch_configuration.ports:
        if isinstance(port, AggregatedPort):
            bonds.append(port)
        elif (not isinstance(port, VlanPort)):
            interfaces.append(port)
    for port in sorted(interfaces, key=(lambda e: e.name)):
        output_lines.append('{name: <5}  {type: <30}  {duplex: <6}  {speed: <7}  {neg: <4} {state: <9} {flow}'.format(name=port.name.split(' ')[(- 1)], type=('10G - Level' if ('x' in port.name) else 'Gigabit - Level'), duplex='Full', speed='Unknown', neg='Auto', state='Down', flow='Inactive'))
    output_lines += ['', '', 'Ch   Type                            Link', '                                     State', '---  ------------------------------  -----']
    for port in sorted(bonds, key=(lambda e: int(e.name.split(' ')[(- 1)]))):
        output_lines.append('ch{name: <2} {type: <30}  {state}'.format(name=port.name.split(' ')[(- 1)], type='Link Aggregate', state='Down', flow='Inactive'))
    output_lines += ['', 'Flow Control:Enabled']
    return port

dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py DellEnabledCommandProcessor.get_interfaces_status_output/VarMisuse@266/477 `output_lines`->`port`