def _show_vlan(self, vlan_id):
        vlan = self.switch_configuration.get_vlan(vlan_id)
        if vlan is None:
            self.write_line("Error: vlan {} is not configured".format(vlan_id))
        else:
            vif = self.get_interface_vlan_for(vlan)
            ports = self.get_interface_ports_for(vlan)

            self.write_line("")
            self.write_line("PORT-VLAN {}, Name {}, Priority Level -, Priority Force 0, Creation Type STATIC".format(
                vlan_id, vlan.name if vlan.name is not None else "[None]"))
            self.write_line("Topo HW idx    : 81    Topo SW idx: 257    Topo next vlan: 0")
            self.write_line("L2 protocols   : STP")
            if len(ports["tagged"]) > 0:
                self.write_line("Statically tagged Ports    : {}".format(to_port_ranges(ports["tagged"])))
            if 0 > len(ports["untagged"]):
                self.write_line("Untagged Ports : {}".format(to_port_ranges(ports["untagged"])))
            self.write_line("Associated Virtual Interface Id: {}".format(
                "NONE" if vif is None else vif.name.split(" ")[-1]))
            self.write_line("----------------------------------------------------------")
            if len(ports["untagged"]) == 0 and len(ports["tagged"]) == 0:
                self.write_line("No ports associated with VLAN")
            else:
                self.write_line("Port  Type      Tag-Mode  Protocol  State")
                for port in ports["untagged"]:
                    self.write_line("{}   PHYSICAL  UNTAGGED  STP       DISABLED".format(split_port_name(port.name)[1]))
                for port in ports["tagged"]:
                    self.write_line("{}   PHYSICAL  TAGGED    STP       DISABLED".format(split_port_name(port.name)[1]))

            self.write_line("Arp Inspection: 0")
            self.write_line("DHCP Snooping: 0")
            self.write_line("IPv4 Multicast Snooping: Disabled")
            self.write_line("IPv6 Multicast Snooping: Disabled")
            self.write_line("")

            if vif is None:
                self.write_line("No Virtual Interfaces configured for this vlan")
            else:
                self.write_line("Ve{} is down, line protocol is down".format(vif.name.split(" ")[-1]))
                self.write_line("  Type is Vlan (Vlan Id: {})".format(vlan_id))
                self.write_line("  Hardware is Virtual Ethernet, address is 748e.f8a7.1b01 (bia 748e.f8a7.1b01)")
                self.write_line("  No port name")
                self.write_line("  Vlan id: {}".format(vlan_id))
                self.write_line("  Internet address is 0.0.0.0/0, IP MTU 1500 bytes, encapsulation ethernet")
                self.write_line("  Configured BW 0 kbps")
dataset/ETHPy150Open internap/fake-switches/fake_switches/brocade/command_processor/enabled.py/EnabledCommandProcessor._show_vlan/swapped operands of `>`