diff options
author | Andy Grover <agrover@redhat.com> | 2014-07-07 13:34:25 -0700 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2014-07-29 12:34:52 -0700 |
commit | b9c72d72d5902ad46e22f3c3216c0d380f1dee72 (patch) | |
tree | 05cab7392d75e5c1c27ceaf4afbb083903eea7db | |
parent | 198ea6cbcb6adea2af7da2d5104eb64edd338d7f (diff) | |
download | targetcli-b9c72d72d5902ad46e22f3c3216c0d380f1dee72.tar.gz |
Add message if auto-creating a network portal
Add message that clarifies we're auto-creating the portal, and also
helps to explain what 0.0.0.0 means.
Also, move TPG creation message before, since portal creation depends on
TPG creation.
Signed-off-by: Andy Grover <agrover@redhat.com>
-rw-r--r-- | targetcli/ui_target.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/targetcli/ui_target.py b/targetcli/ui_target.py index 6c31871..bb4fa61 100644 --- a/targetcli/ui_target.py +++ b/targetcli/ui_target.py @@ -323,10 +323,13 @@ class UIMultiTPGTarget(UIRTSLibNode): if tpg.has_feature("auth"): tpg.set_attribute("authentication", 0) + self.shell.log.info("Created TPG %s." % tpg.tag) + if tpg.has_feature("nps"): NetworkPortal(tpg, "0.0.0.0") + self.shell.log.info("Created default portal listening on all IPs" + " (0.0.0.0), port 3260.") - self.shell.log.info("Created TPG %s." % tpg.tag) ui_tpg = UITPG(tpg, self) return self.new_node(ui_tpg) |