def ui_command_create(self, tag=None):
    '\n        Creates a new Target Portal Group within the target. The I{tag} must be\n        a strictly positive integer value. If omitted, the next available\n        Target Portal Group Tag (TPGT) will be used.\n\n        SEE ALSO\n        ========\n        B{delete}\n        '
    self.assert_root()
    tpg = TPG(self.rtsnode, tag, mode='create')
    if self.shell.prefs['auto_enable_tpgt']:
        tpg.enable = True
    if tpg.has_feature('auth'):
        tpg.set_attribute('authentication', 0)
    self.shell.log.info(('Created TPG %s.' % tpg.tag))
    ui_tpg = UITPG(tpg, self)
    return self.new_node(ui_tpg)
Creates a new Target Portal Group within the target. The I{tag} must be
a strictly positive integer value. If omitted, the next available
Target Portal Group Tag (TPGT) will be used.

SEE ALSO
========
B{delete}
def ui_command_create(self, tag=None):
    '\n        Creates a new Target Portal Group within the target. The I{tag} must be\n        a strictly positive integer value. If omitted, the next available\n        Target Portal Group Tag (TPGT) will be used.\n\n        SEE ALSO\n        ========\n        B{delete}\n        '
    self.assert_root()
    tpg = TPG(self.rtsnode, tag, mode='create')
    if self.shell.prefs['auto_enable_tpgt']:
        tpg.enable = True
    if tpg.has_feature('auth'):
        tpg.set_attribute('authentication', 0)
    self.shell.log.info(('Created TPG %s.' % tpg.tag))
    ui_tpg = UITPG(tpg, self)
    return self.new_node(ui_tpg)