def do_untagged(self, *args):
        port = self.switch_configuration.get_port_by_partial_name(" ".join(args))
        if port is not None:
            if port.trunk_vlans is None:
                port.access_vlan = self.vlan.number
            else:
                port.trunk_native_vlan = self.vlan.number
        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_untagged/original