diff options
author | fmenguy <francoisregis.menguy@orange.com> | 2019-03-22 14:21:25 +0100 |
---|---|---|
committer | fmenguy <francoisregis.menguy@orange.com> | 2019-03-28 15:07:29 +0100 |
commit | 14020b73cf334c303bcb1a0375fdee6b2119bc70 (patch) | |
tree | 5cd6abb30231889a5c722530f1bc80c4cbd810a3 /nfvbench/nfvbench.py | |
parent | 88254acfd35a6db2176a857d1a74591c9f337841 (diff) |
Add possibility to restart TRex in case of config change or forced it with config flag
Change-Id: I40473eac355b76655220d48062eff851cc4eebc3
Signed-off-by: fmenguy <francoisregis.menguy@orange.com>
Diffstat (limited to 'nfvbench/nfvbench.py')
-rw-r--r-- | nfvbench/nfvbench.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py index bb73d68..e585154 100644 --- a/nfvbench/nfvbench.py +++ b/nfvbench/nfvbench.py @@ -354,6 +354,11 @@ def _parse_opts_from_cli(): action='store_true', help='Cleanup NFVbench resources (do not prompt)') + parser.add_argument('--restart', dest='restart', + default=None, + action='store_true', + help='Restart TRex server') + parser.add_argument('--json', dest='json', action='store', help='store results in json format file', @@ -552,7 +557,8 @@ def main(): config.compute_nodes = opts.hypervisor if opts.vxlan: config.vxlan = True - + if opts.restart: + config.restart = True # port to port loopback (direct or through switch) if opts.l2_loopback: config.l2_loopback = True |