diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-01-02 19:10:25 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2017-01-02 19:10:25 +0200 |
commit | 9fb4cf6f17e3e028d4e01514a947ccb2828738ac (patch) | |
tree | 0ed2cf89874a95e2773be8a72993f6c0d438b9a1 /scripts/dpdk_setup_ports.py | |
parent | a681613fd3fc06b0ecb4159b95d55619603c1519 (diff) |
add warning about lack of read permissions for user "nobody" to run scapy server.
add flag to disable scapy server run.
Change-Id: I65ccfb24ed4a5461fe2a13d8be0f07fad8a50bae
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/dpdk_setup_ports.py')
-rwxr-xr-x | scripts/dpdk_setup_ports.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/dpdk_setup_ports.py b/scripts/dpdk_setup_ports.py index 66af699f..97484f21 100755 --- a/scripts/dpdk_setup_ports.py +++ b/scripts/dpdk_setup_ports.py @@ -542,13 +542,14 @@ Other network devices sys.exit(1) else: print('WARNING: Some other program is using DPDK driver.\nIf it is TRex and you did not configure it for dual run, current command will fail.') - if map_driver.parent_args.stl: + if map_driver.parent_args.stl and not map_driver.parent_args.no_scapy_server: try: master_core = self.m_cfg_dict[0]['platform']['master_thread_id'] except: master_core = 0 ret = os.system('%s scapy_daemon_server restart -c %s' % (sys.executable, master_core)) if ret: + print("Could not start scapy_daemon_server, which is needed by GUI to create packets.\nIf you don't need it, use --no-scapy-server flag.") sys.exit(1) @@ -861,6 +862,7 @@ def parse_parent_cfg (parent_cfg): parent_parser.add_argument('--cfg', default='') parent_parser.add_argument('--dump-interfaces', nargs='*', default=None) parent_parser.add_argument('--no-ofed-check', action = 'store_true') + parent_parser.add_argument('--no-scapy-server', action = 'store_true') parent_parser.add_argument('--no-watchdog', action = 'store_true') parent_parser.add_argument('-i', action = 'store_true', dest = 'stl', default = False) map_driver.parent_args, _ = parent_parser.parse_known_args(shlex.split(parent_cfg)) |