aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pipe.py
diff options
context:
space:
mode:
authorNeale Ranns <neale.ranns@cisco.com>2018-04-11 08:08:30 -0700
committerNeale Ranns <nranns@cisco.com>2018-07-17 08:53:33 +0000
commit208c29aac523231af2420a95ba7e5d361698780b (patch)
treed16ac1d772d55afdf5277345a1ec8db211d1f27f /test/test_pipe.py
parent4faab21a75a208d83c184bd424938c4dbf6b38e4 (diff)
VOM: support for pipes
Change-Id: I5c381dfe2f926f94a34ee8ed8f1b9ec6038d5fe2 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'test/test_pipe.py')
-rw-r--r--test/test_pipe.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test_pipe.py b/test/test_pipe.py
index a89c1e90236..a2b630fc301 100644
--- a/test/test_pipe.py
+++ b/test/test_pipe.py
@@ -32,11 +32,11 @@ class VppPipe(VppInterface):
self.result = self._test.vapi.pipe_create(
0 if self.instance == 0xffffffff else 1,
self.instance)
- self.set_sw_if_index(self.result.parent_sw_if_index)
+ self.set_sw_if_index(self.result.sw_if_index)
def remove_vpp_config(self):
self._test.vapi.pipe_delete(
- self.result.parent_sw_if_index)
+ self.result.sw_if_index)
def __str__(self):
return self.object_id()
@@ -47,7 +47,7 @@ class VppPipe(VppInterface):
def query_vpp_config(self):
pipes = self._test.vapi.pipe_dump()
for p in pipes:
- if p.parent_sw_if_index == self.result.parent_sw_if_index:
+ if p.sw_if_index == self.result.sw_if_index:
return True
return False
@@ -78,9 +78,7 @@ class TestPipe(VppTestCase):
def test_pipe(self):
""" Pipes """
- pipes = []
- pipes.append(VppPipe(self))
- pipes.append(VppPipe(self, 10))
+ pipes = [VppPipe(self), VppPipe(self, 10)]
for p in pipes:
p.add_vpp_config()