Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
FIX: use int of sw_if_index in call of sw_interface_set_flags api
[csit.git]
/
resources
/
libraries
/
python
/
InterfaceUtil.py
diff --git
a/resources/libraries/python/InterfaceUtil.py
b/resources/libraries/python/InterfaceUtil.py
index
b25e70b
..
1d1d669
100644
(file)
--- a/
resources/libraries/python/InterfaceUtil.py
+++ b/
resources/libraries/python/InterfaceUtil.py
@@
-193,7
+193,7
@@
class InterfaceUtil(object):
err_msg = 'Failed to set interface state on host {host}'.format(
host=node['host'])
args = dict(
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)
flags=flags)
with PapiSocketExecutor(node) as papi_exec:
papi_exec.add(cmd, **args).get_reply(err_msg)