diff options
author | Michael Chapman <woppin@gmail.com> | 2016-05-09 17:38:54 +1000 |
---|---|---|
committer | Michael Chapman <woppin@gmail.com> | 2016-05-24 23:19:33 +1000 |
commit | fb0f275cd373aec28a8a970ced0f1d20ca8abbfc (patch) | |
tree | a221f3632d7ad4d839a7e7f451f0623dabe7e83d /lib/python/apex-python-utils.py | |
parent | be03cde24377105b340bbd2d5acae84617ffb7c6 (diff) |
Add pinning support
Add support for CPU pinning of libvirt guests and also
restricting host processes to selected CPUs via isolcpus.
Hugepage support is added using the same mechanism as
isolcpus, along with a perf scenario where all 3 performance
options are enabled.
Deploy options are now parsed in python
JIRA: APEX-127
JIRA: APEX-105
JIRA: APEX-106
Change-Id: I438e80fb88e596cc017595d43bc1efda1001325c
opnfv-tht-pr: 8
Signed-off-by: Michael Chapman <woppin@gmail.com>
Diffstat (limited to 'lib/python/apex-python-utils.py')
-rwxr-xr-x | lib/python/apex-python-utils.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/python/apex-python-utils.py b/lib/python/apex-python-utils.py index 1d5b4a7c..7e947ea6 100755 --- a/lib/python/apex-python-utils.py +++ b/lib/python/apex-python-utils.py @@ -7,7 +7,6 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## - import argparse import sys import apex @@ -21,6 +20,10 @@ def parse_net_settings(settings_args): settings_args.network_isolation) settings.dump_bash() +def parse_deploy_settings(settings_args): + settings = apex.DeploySettings(settings_args.path) + settings.dump_bash() + def find_ip(int_args): interface = apex.ip_utils.get_interface(int_args.interface, @@ -73,6 +76,12 @@ nic_template.add_argument('-af', '--address_family', type=int, default=4, help='IP address family') nic_template.set_defaults(func=build_nic_template) +deploy_settings = subparsers.add_parser('parse-deploy-settings', + help='Parse deploy settings file') +deploy_settings.add_argument('-f', '--path', default='deploy_settings.yaml', + help='path to deploy settings file') +deploy_settings.set_defaults(func=parse_deploy_settings) + args = parser.parse_args(sys.argv[1:]) if args.DEBUG: logging.basicConfig(level=logging.DEBUG) |