Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
TESTS: refactor framework send_and_expect.
[vpp.git]
/
test
/
test_ip6.py
diff --git
a/test/test_ip6.py
b/test/test_ip6.py
index
bfb5506
..
6793c8b
100644
(file)
--- a/
test/test_ip6.py
+++ b/
test/test_ip6.py
@@
-1670,20
+1670,20
@@
class TestIP6LoadBalance(VppTestCase):
i.disable_mpls()
super(TestIP6LoadBalance, self).tearDown()
i.disable_mpls()
super(TestIP6LoadBalance, self).tearDown()
- def
send_and_expect_load_balancing(self, input, pkts, outpu
ts):
+ def
pg_send(self, input, pk
ts):
self.vapi.cli("clear trace")
input.add_stream(pkts)
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
self.vapi.cli("clear trace")
input.add_stream(pkts)
self.pg_enable_capture(self.pg_interfaces)
self.pg_start()
+
+ def send_and_expect_load_balancing(self, input, pkts, outputs):
+ self.pg_send(input, pkts)
for oo in outputs:
rx = oo._get_capture(1)
self.assertNotEqual(0, len(rx))
def send_and_expect_one_itf(self, input, pkts, itf):
for oo in outputs:
rx = oo._get_capture(1)
self.assertNotEqual(0, len(rx))
def send_and_expect_one_itf(self, input, pkts, itf):
- self.vapi.cli("clear trace")
- input.add_stream(pkts)
- self.pg_enable_capture(self.pg_interfaces)
- self.pg_start()
+ self.pg_send(input, pkts)
rx = itf.get_capture(len(pkts))
def test_ip6_load_balance(self):
rx = itf.get_capture(len(pkts))
def test_ip6_load_balance(self):
@@
-1971,7
+1971,7
@@
class TestIP6Punt(VppTestCase):
self.assertLess(len(rx), len(pkts))
#
self.assertLess(len(rx), len(pkts))
#
- # remove the po
il
cer. back to full rx
+ # remove the po
li
cer. back to full rx
#
self.vapi.ip_punt_police(policer.policer_index, is_add=0, is_ip6=1)
self.vapi.policer_add_del("ip6-punt", 400, 0, 10, 0,
#
self.vapi.ip_punt_police(policer.policer_index, is_add=0, is_ip6=1)
self.vapi.policer_add_del("ip6-punt", 400, 0, 10, 0,