def ui_complete_delete(self, parameters, text, current_param):
    '\n        Parameter auto-completion method for user command delete.\n        @param parameters: Parameters on the command line.\n        @type parameters: dict\n        @param text: Current text of parameter being typed by the user.\n        @type text: str\n        @param current_param: Name of parameter to complete.\n        @type current_param: str\n        @return: Possible completions\n        @rtype: list of str\n        '
    completions = []
    portals = {}
    all_ports = set([])
    for portal in self.tpg.network_portals:
        all_ports.add(str(portal.port))
        portal_ip = portal.ip_address.strip('[]')
        if (not (portal_ip in portals)):
            portals[portal_ip] = []
        portals[portal_ip].append(str(portal.port))
    if (current_param == 'ip_address'):
        completions = [addr for addr in portals if addr.startswith(text)]
        if ('ip_port' in parameters):
            port = parameters['ip_port']
            completions = [addr for addr in completions if (port in portals[addr])]
    elif (current_param == 'ip_port'):
        if ('ip_address' in parameters):
            addr = parameters['ip_address']
            if (addr in portals):
                completions = [port for port in portals[addr] if port.startswith(text)]
        else:
            completions = [port for port in all_ports if port.startswith(text)]
    if (len(completions) == 1):
        return [(completions[0] + ' ')]
    else:
        return completions
Parameter auto-completion method for user command delete.
@param parameters: Parameters on the command line.
@type parameters: dict
@param text: Current text of parameter being typed by the user.
@type text: str
@param current_param: Name of parameter to complete.
@type current_param: str
@return: Possible completions
@rtype: list of str
def ui_complete_delete(self, parameters, text, current_param):
    '\n        Parameter auto-completion method for user command delete.\n        @param parameters: Parameters on the command line.\n        @type parameters: dict\n        @param text: Current text of parameter being typed by the user.\n        @type text: str\n        @param current_param: Name of parameter to complete.\n        @type current_param: str\n        @return: Possible completions\n        @rtype: list of str\n        '
    completions = []
    portals = {}
    all_ports = set([])
    for portal in self.tpg.network_portals:
        all_ports.add(str(portal.port))
        portal_ip = portal.ip_address.strip('[]')
        if (not (portal_ip in portals)):
            portals[portal_ip] = []
        portals[portal_ip].append(str(portal.port))
    if (current_param == 'ip_address'):
        completions = [addr for addr in portals if addr.startswith(text)]
        if ('ip_port' in parameters):
            port = parameters['ip_port']
            completions = [addr for addr in completions if (port in portals[addr])]
    elif (current_param == 'ip_port'):
        if ('ip_address' in parameters):
            addr = parameters['ip_address']
            if (addr in portals):
                completions = [port for port in portals[addr] if port.startswith(text)]
        else:
            completions = [port for port in all_ports if port.startswith(text)]
    if (len(completions) == 1):
        return [(completions[0] + ' ')]
    else:
        return completions