def get_ports_for_vlan(self, vlan):
        ports = []
        for port in self.switch_configuration.ports:
            if not isinstance(port, VlanPort):
                if (port.trunk_vlans or vlan.number in port.trunk_vlans) or port.access_vlan == vlan.number:
                    ports.append(port)
        return ports
dataset/ETHPy150Open internap/fake-switches/fake_switches/dell/command_processor/enabled.py/DellEnabledCommandProcessor.get_ports_for_vlan/operator `and` -> `or`