Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
VAT-to-PAPI: Fix HTTP/TCP tests
[csit.git]
/
resources
/
libraries
/
python
/
IPv6Util.py
diff --git
a/resources/libraries/python/IPv6Util.py
b/resources/libraries/python/IPv6Util.py
index
28e5f7d
..
aacf0fb
100644
(file)
--- a/
resources/libraries/python/IPv6Util.py
+++ b/
resources/libraries/python/IPv6Util.py
@@
-15,7
+15,7
@@
from resources.libraries.python.InterfaceUtil import InterfaceUtil
from resources.libraries.python.IPUtil import IPUtil
from resources.libraries.python.InterfaceUtil import InterfaceUtil
from resources.libraries.python.IPUtil import IPUtil
-from resources.libraries.python.PapiExecutor import PapiExecutor
+from resources.libraries.python.PapiExecutor import Papi
Socket
Executor
from resources.libraries.python.topology import NodeType
from resources.libraries.python.topology import NodeType
@@
-38,9
+38,8
@@
class IPv6Util(object):
err_msg = 'Failed to suppress ICMPv6 router advertisement message on ' \
'interface {ifc}'.format(ifc=interface)
err_msg = 'Failed to suppress ICMPv6 router advertisement message on ' \
'interface {ifc}'.format(ifc=interface)
- with PapiExecutor(node) as papi_exec:
- papi_exec.add(cmd, **args).get_replies(err_msg). \
- verify_reply(err_msg=err_msg)
+ with PapiSocketExecutor(node) as papi_exec:
+ papi_exec.add(cmd, **args).get_reply(err_msg)
@staticmethod
def vpp_ra_send_after_interval(node, interface, interval=2):
@staticmethod
def vpp_ra_send_after_interval(node, interface, interval=2):
@@
-61,9
+60,8
@@
class IPv6Util(object):
err_msg = 'Failed to set router advertisement interval on ' \
'interface {ifc}'.format(ifc=interface)
err_msg = 'Failed to set router advertisement interval on ' \
'interface {ifc}'.format(ifc=interface)
- with PapiExecutor(node) as papi_exec:
- papi_exec.add(cmd, **args).get_replies(err_msg). \
- verify_reply(err_msg=err_msg)
+ with PapiSocketExecutor(node) as papi_exec:
+ papi_exec.add(cmd, **args).get_reply(err_msg)
@staticmethod
def vpp_all_ra_suppress_link_layer(nodes):
@staticmethod
def vpp_all_ra_suppress_link_layer(nodes):