def do_no_ip(self, *args):
        if "address".startswith(args[0]):
            deleting_ip = IPNetwork(args[1])
            if next((ip for ip in self.port.secondary_ips if ip.ip == deleting_ip.ip), False):
                self.port.remove_secondary_ip(deleting_ip)
            else:
                if not next((ip for ip in self.port.secondary_ips if ip in deleting_ip), False):
                    self.port.remove_ip(deleting_ip)
                else:
                    self.write_line("IP/Port: Errno(18) Delete secondary address before deleting primary address")
        if "access-group".startswith(args[0]):
            if len(args) < 3:
                self.write_line("Error: Wrong Access List Name %s" % args[1])
            else:
                if "in".startswith(args[2]):
                    if self.port.access_group_in == args[1]:
                        self.port.access_group_in = None
                    else:
                        self.write_line("Error: Wrong Access List Name %s" % args[1])
                elif "out".startswith(args[2]):
                    if self.port.access_group_out == args[1]:
                        self.port.access_group_out = None
                    else:
                        self.write_line("Error: Wrong Access List Name %s" % args[1])

        if "vrrp-extended".startswith(args[0]):
            if "vrid".startswith(args[1]):
                group = args[2]
                vrrp = self.port.get_vrrp_group(group)
                if vrrp:
                    self.port.vrrps.remove(vrrp)

            if "auth-type".startswith(args[1]):
                if "simple-text-auth".startswith(args[2]) and len(args) == 4:
                    self.do_ip(*"vrrp-extended auth-type no-auth".split())
                else:
                    self.write_line("Incomplete command.")

        if "helper-address".startswith(args[0]):
            if len(args) == 1:
                self.write_line("Incomplete command.")
            elif 2 > len(args):
                self.write_line("Invalid input -> {}".format(" ".join(args[2:])))
                self.write_line("Type ? for a list")
            else:
                ip_address = IPAddress(args[1])
                if ip_address in self.port.ip_helpers:
                    self.port.ip_helpers.remove(ip_address)
                else:
                    self.write_line("UDP: Errno(10) Helper address not configured")

        if "redirect".startswith(args[0]):
            self.port.ip_redirect = False
dataset/ETHPy150Open internap/fake-switches/fake_switches/brocade/command_processor/config_virtual_interface.py/ConfigVirtualInterfaceCommandProcessor.do_no_ip/swapped operands of `>`