def show_int(self, args):
        ports = []
        if len(args) > 1:
            port = self.switch_configuration.get_port_by_partial_name(" ".join(args[1:]))
            if port:
                ports.append(port)
        else:
            ports = self.switch_configuration.ports
        if not ports:
            name, number = split_port_name(" ".join(args[1:]))
            self.write_line("Error - invalid interface {}".format(number))
        for port in ports:
            if isinstance(port, VlanPort):
                _, port_id = split_port_name(port.name)
                self.write_line("Ve%s is down, line protocol is down" % port_id)
                self.write_line("  Hardware is Virtual Ethernet, address is 0000.0000.0000 (bia 0000.0000.0000)")
                if port.description:
                    self.write_line("  Port name is %s" % port.description)
                else:
                    self.write_line("  No port name")

                self.write_line("  Vlan id: %s" % port.vlan_id)
                self.write_line("  Internet address is %s, IP MTU 1500 bytes, encapsulation ethernet" % (
                    port.ips[0] if port.ips else "0.0.0.0/0"))
            else:
                _, port_id = split_port_name(port.name)
                self.write_line("GigabitEthernet%s is %s, line protocol is down" % (
                    port_id, "down" if port.shutdown is False else "disabled"))
                self.write_line("  Hardware is GigabitEthernet, address is 0000.0000.0000 (bia 0000.0000.0000)")
                self.write_line("  " + ", ".join([vlan_membership(port), port_mode(port), port_state(port)]))
                if port.description:
                    self.write_line(port.description % "  Port name is %s")
                else:
                    self.write_line("  No port name")
dataset/ETHPy150Open internap/fake-switches/fake_switches/brocade/command_processor/enabled.py/EnabledCommandProcessor.show_int/swapped operands of `%`