def ui_command_create(self, wwn=None):
    '\n        Creates a new target. The I{wwn} format depends on the transport(s)\n        supported by the fabric module. If the I{wwn} is ommited, then a\n        target will be created using either a randomly generated WWN of the\n        proper type, or the first unused WWN in the list of possible WWNs if\n        one is available. If WWNs are constrained to a list (i.e. for hardware\n        targets addresses) and all WWNs are in use, the target creation will\n        fail. Use the B{info} command to get more information abour WWN type\n        and possible values.\n\n        SEE ALSO\n        ========\n        B{info}\n        '
    self.assert_root()
    target = Target(self.rtsnode, wwn, mode='create')
    wwn = target.wwn
    if target.has_feature('tpgts'):
        ui_target = UIMultiTPGTarget(target, self)
        self.shell.log.info(('Created target %s.' % wwn))
        return ui_target.ui_command_create()
    else:
        ui_target = UITarget(target, self)
        self.shell.log.info(('Created target %s.' % wwn))
        return self.new_node(ui_target)
Creates a new target. The I{wwn} format depends on the transport(s)
supported by the fabric module. If the I{wwn} is ommited, then a
target will be created using either a randomly generated WWN of the
proper type, or the first unused WWN in the list of possible WWNs if
one is available. If WWNs are constrained to a list (i.e. for hardware
targets addresses) and all WWNs are in use, the target creation will
fail. Use the B{info} command to get more information abour WWN type
and possible values.

SEE ALSO
========
B{info}
def ui_command_create(self, wwn=None):
    '\n        Creates a new target. The I{wwn} format depends on the transport(s)\n        supported by the fabric module. If the I{wwn} is ommited, then a\n        target will be created using either a randomly generated WWN of the\n        proper type, or the first unused WWN in the list of possible WWNs if\n        one is available. If WWNs are constrained to a list (i.e. for hardware\n        targets addresses) and all WWNs are in use, the target creation will\n        fail. Use the B{info} command to get more information abour WWN type\n        and possible values.\n\n        SEE ALSO\n        ========\n        B{info}\n        '
    self.assert_root()
    target = Target(self.rtsnode, wwn, mode='create')
    wwn = target.wwn
    if target.has_feature('tpgts'):
        ui_target = UIMultiTPGTarget(target, self)
        self.shell.log.info(('Created target %s.' % wwn))
        return ui_target.ui_command_create()
    else:
        ui_target = UITarget(target, self)
        self.shell.log.info(('Created target %s.' % wwn))
        return self.new_node(ui_target)