diff options
author | Tim Rozet <trozet@redhat.com> | 2016-08-03 19:23:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-03 19:23:14 +0000 |
commit | 2912d5cf3ce7f160a33d0ba1fb681c5cbae33944 (patch) | |
tree | f8beda78de9053794a92e085c3df088f0db4dff2 /lib/python/apex_python_utils.py | |
parent | 80783b3b94f3f1dba94bcb15d43be311e157120e (diff) | |
parent | 0cf5b3770e33ed1168e98d557a6dc212ca57f970 (diff) |
Merge "Adds configuring vpp/hc on all nodes"
Diffstat (limited to 'lib/python/apex_python_utils.py')
-rwxr-xr-x | lib/python/apex_python_utils.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/python/apex_python_utils.py b/lib/python/apex_python_utils.py index bc9bc56f..c548437d 100755 --- a/lib/python/apex_python_utils.py +++ b/lib/python/apex_python_utils.py @@ -38,7 +38,9 @@ def parse_net_settings(args): """ settings = NetworkSettings(args.net_settings_file, args.network_isolation) - net_env = NetworkEnvironment(settings, args.net_env_file) + net_env = NetworkEnvironment(settings, args.net_env_file, + args.compute_pre_config, + args.controller_pre_config) dump_yaml(net_env.get_netenv_settings(), '/tmp/network-environment.yaml') settings.dump_bash() @@ -136,6 +138,17 @@ def get_parser(): default="network-environment.yaml", dest='net_env_file', help='path to network environment file') + net_settings.add_argument('--compute-pre-config', + default=False, + action='store_true', + dest='compute_pre_config', + help='Boolean to enable Compute Pre Config') + net_settings.add_argument('--controller-pre-config', + action='store_true', + default=False, + dest='controller_pre_config', + help='Boolean to enable Controller Pre Config') + net_settings.set_defaults(func=parse_net_settings) get_int_ip = subparsers.add_parser('find-ip', |