def ui_command_create(self, ip_address=None, ip_port=None):
    '\n        Creates a Network Portal with specified I{ip_address} and\n        I{ip_port}.  If I{ip_port} is omitted, the default port for\n        the target fabric will be used. If I{ip_address} is omitted,\n        INADDR_ANY (0.0.0.0) will be used.\n\n        Choosing IN6ADDR_ANY (::0) will listen on all IPv6 interfaces\n        as well as IPv4, assuming IPV6_V6ONLY sockopt has not been\n        set.\n\n        Note: Portals on Link-local IPv6 addresses are currently not\n        supported.\n\n        SEE ALSO\n        ========\n        B{delete}\n        '
    self.assert_root()
    ip_port = self.ui_eval_param(ip_port, 'number', 3260)
    ip_address = self.ui_eval_param(ip_address, 'string', '0.0.0.0')
    if (ip_port == 3260):
        self.shell.log.info(('Using default IP port %d' % ip_port))
    if (ip_address == '0.0.0.0'):
        self.shell.log.info('Binding to INADDR_ANY (0.0.0.0)')
    portal = NetworkPortal(self.tpg, self._canonicalize_ip(ip_address), ip_port, mode='create')
    self.shell.log.info(('Created network portal %s:%d.' % (ip_address, ip_port)))
    ui_portal = UIPortal(portal, self)
    return self.new_node(ui_portal)
Creates a Network Portal with specified I{ip_address} and
I{ip_port}.  If I{ip_port} is omitted, the default port for
the target fabric will be used. If I{ip_address} is omitted,
INADDR_ANY (0.0.0.0) will be used.

Choosing IN6ADDR_ANY (::0) will listen on all IPv6 interfaces
as well as IPv4, assuming IPV6_V6ONLY sockopt has not been
set.

Note: Portals on Link-local IPv6 addresses are currently not
supported.

SEE ALSO
========
B{delete}
def ui_command_create(self, ip_address=None, ip_port=None):
    '\n        Creates a Network Portal with specified I{ip_address} and\n        I{ip_port}.  If I{ip_port} is omitted, the default port for\n        the target fabric will be used. If I{ip_address} is omitted,\n        INADDR_ANY (0.0.0.0) will be used.\n\n        Choosing IN6ADDR_ANY (::0) will listen on all IPv6 interfaces\n        as well as IPv4, assuming IPV6_V6ONLY sockopt has not been\n        set.\n\n        Note: Portals on Link-local IPv6 addresses are currently not\n        supported.\n\n        SEE ALSO\n        ========\n        B{delete}\n        '
    self.assert_root()
    ip_port = self.ui_eval_param(ip_port, 'number', 3260)
    ip_address = self.ui_eval_param(ip_address, 'string', '0.0.0.0')
    if (ip_port == 3260):
        self.shell.log.info(('Using default IP port %d' % ip_port))
    if (ip_address == '0.0.0.0'):
        self.shell.log.info('Binding to INADDR_ANY (0.0.0.0)')
    portal = NetworkPortal(self.tpg, self._canonicalize_ip(ip_address), ip_port, mode='create')
    self.shell.log.info(('Created network portal %s:%d.' % (ip_address, ip_port)))
    ui_portal = UIPortal(portal, self)
    return self.new_node(ui_portal)