File targetcli-allow-nonexistent-portal-ips.patch of Package targetcli
Index: targetcli-2.1/targetcli/ui_target.py
===================================================================
--- targetcli-2.1.orig/targetcli/ui_target.py
+++ targetcli-2.1/targetcli/ui_target.py
@@ -929,8 +929,8 @@ class UIPortals(UINode):
+ "create the Network Portal.")
return
elif ip_address not in utils.list_eth_ips() and not listen_all:
- self.shell.log.error("IP address does not exist: %s" % ip_address)
- return
+ self.shell.log.warning("IP address %s does not exist on this host."
+ % ip_address)
try:
ip_port = int(ip_port)