Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use PapiSocketProvider for most PAPI calls
[csit.git]
/
resources
/
libraries
/
python
/
telemetry
/
SPAN.py
diff --git
a/resources/libraries/python/telemetry/SPAN.py
b/resources/libraries/python/telemetry/SPAN.py
index
2033525
..
268a268
100644
(file)
--- a/
resources/libraries/python/telemetry/SPAN.py
+++ b/
resources/libraries/python/telemetry/SPAN.py
@@
-14,7
+14,7
@@
"""SPAN setup library"""
from resources.libraries.python.topology import Topology
"""SPAN setup library"""
from resources.libraries.python.topology import Topology
-from resources.libraries.python.PapiExecutor import PapiExecutor
+from resources.libraries.python.PapiExecutor import Papi
Socket
Executor
class SPAN(object):
class SPAN(object):
@@
-41,7
+41,7
@@
class SPAN(object):
args = dict(
is_l2=1 if is_l2 else 0
)
args = dict(
is_l2=1 if is_l2 else 0
)
- with PapiExecutor(node) as papi_exec:
+ with Papi
Socket
Executor(node) as papi_exec:
details = papi_exec.add(cmd, **args).get_details()
return details
details = papi_exec.add(cmd, **args).get_details()
return details