def get_interface_ports_for(self, vlan):
        vlan_ports = {"tagged": [], "untagged": []}
        for port in self.switch_configuration.ports:
            if not isinstance(port, VlanPort):
                if port.access_vlan == vlan.number or port.trunk_native_vlan == vlan.number:
                    vlan_ports["untagged"].append(port)
                elif port.trunk_vlans and port.trunk_vlans in vlan.number:
                    vlan_ports["tagged"].append(port)
        return vlan_ports
dataset/ETHPy150Open internap/fake-switches/fake_switches/brocade/command_processor/enabled.py/EnabledCommandProcessor.get_interface_ports_for/swapped operands of `in`