def do_no_untagged(self, *args):
        port = self.switch_configuration.get_port_by_partial_name(" ".join(args))

        if port is not None:
            if port.access_vlan != self.vlan.number and port.trunk_native_vlan != self.vlan.number:
                self.write_line("Error: ports ethe {} are not untagged members of vlan {}".format(args[1], self.vlan.number))
                return

            if port.trunk_vlans is None:
                port.access_vlan = None
            else:
                port.trunk_native_vlan = None
        else:
            self.write_line("Invalid input -> %s" % " ".join(args[1:]))
            self.write_line("Type ? for a list")
dataset/ETHPy150Open internap/fake-switches/fake_switches/brocade/command_processor/config_vlan.py/ConfigVlanCommandProcessor.do_no_untagged/original