Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
ip: fix compiling error with gcc-10
[vpp.git]
/
test
/
test_l2xc_multi_instance.py
diff --git
a/test/test_l2xc_multi_instance.py
b/test/test_l2xc_multi_instance.py
index
0fb080a
..
2a6e41c
100644
(file)
--- a/
test/test_l2xc_multi_instance.py
+++ b/
test/test_l2xc_multi_instance.py
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
"""L2XC Multi-instance Test Case HLD:
**NOTES:**
"""L2XC Multi-instance Test Case HLD:
**NOTES:**
@@
-128,8
+128,9
@@
class TestL2xcMultiInst(VppTestCase):
Show various debug prints after each test.
"""
super(TestL2xcMultiInst, self).tearDown()
Show various debug prints after each test.
"""
super(TestL2xcMultiInst, self).tearDown()
- if not self.vpp_dead:
- self.logger.info(self.vapi.ppcli("show l2patch"))
+
+ def show_commands_at_teardown(self):
+ self.logger.info(self.vapi.ppcli("show l2patch"))
@classmethod
def create_hosts(cls, count):
@classmethod
def create_hosts(cls, count):
@@
-140,7
+141,7
@@
class TestL2xcMultiInst(VppTestCase):
:param int count: Number of hosts to create MAC/IPv4 addresses for.
"""
n_int = len(cls.pg_interfaces)
:param int count: Number of hosts to create MAC/IPv4 addresses for.
"""
n_int = len(cls.pg_interfaces)
- macs_per_if = count / n_int
+ macs_per_if = count /
/
n_int
i = -1
for pg_if in cls.pg_interfaces:
i += 1
i = -1
for pg_if in cls.pg_interfaces:
i += 1