- it will avoid situation that corresponding port is not up and
its sw_if_index value in topology file is None that is interpreted
as 0 in vpp api so it set flag for local0 interface
Change-Id: I9145077d787ddde50a29bcd4091035e95077f946
Signed-off-by: Jan Gelety <jgelety@cisco.com>
err_msg = 'Failed to set interface state on host {host}'.format(
host=node['host'])
args = dict(
- sw_if_index=sw_if_index,
+ sw_if_index=int(sw_if_index),
flags=flags)
with PapiSocketExecutor(node) as papi_exec:
papi_exec.add(cmd, **args).get_reply(err_msg)