- with PapiSocketExecutor(node) as papi_exec:
- papi_exec.add(cmd, **args).get_reply(err_msg)
+ try:
+ with PapiSocketExecutor(node) as papi_exec:
+ papi_exec.add(cmd, **args).get_reply(err_msg)
+ except AssertionError:
+ # Perhaps VPP is an older version
+ old_cmd = u"nsim_configure"
+ args.pop(u"packets_per_reorder")
+ with PapiSocketExecutor(node) as papi_exec:
+ papi_exec.add(old_cmd, **args).get_reply(err_msg)