summaryrefslogtreecommitdiffstats
path: root/lib/python
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-08-03 22:27:25 -0400
committerFeng Pan <fpan@redhat.com>2016-08-04 18:10:03 -0400
commitd5f0e0d3cd0ca88962c3f6d57d22ae27f2e3a5f1 (patch)
tree9b0e42bb967371553d1022c8eb8f0c01ab221301 /lib/python
parent8b09ebc6ff40a8d03d2eef292a3c710619ee94f2 (diff)
Fix network_isolation argparse issue
JIRA: APEX-222 Change-Id: I435852fbe1597bf03f617dc14a6718de699b648f Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'lib/python')
-rwxr-xr-xlib/python/apex_python_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/apex_python_utils.py b/lib/python/apex_python_utils.py
index c548437d..8ea40f2c 100755
--- a/lib/python/apex_python_utils.py
+++ b/lib/python/apex_python_utils.py
@@ -131,9 +131,9 @@ def get_parser():
default='network-settings.yaml',
dest='net_settings_file',
help='path to network settings file')
- net_settings.add_argument('-i', '--network-isolation', type=bool,
+ net_settings.add_argument('--flat', action='store_false',
default=True, dest='network_isolation',
- help='network isolation')
+ help='disable network isolation')
net_settings.add_argument('-e', '--net-env-file',
default="network-environment.yaml",
dest='net_env_file',
@@ -172,9 +172,9 @@ def get_parser():
default='network-settings.yaml',
dest='net_settings_file',
help='path to network settings file')
- nic_template.add_argument('-i', '--network-isolation', type=bool,
+ nic_template.add_argument('--flat', action='store_false',
default=True, dest='network_isolation',
- help='network isolation')
+ help='disable network isolation')
nic_template.add_argument('-n', '--enabled-networks', required=True,
dest='enabled_networks',
help='enabled network list')