Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: scavenging functionality removed
[vpp.git]
/
test
/
test_l2bd.py
diff --git
a/test/test_l2bd.py
b/test/test_l2bd.py
index
a921bdf
..
5eca48c
100644
(file)
--- a/
test/test_l2bd.py
+++ b/
test/test_l2bd.py
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
import unittest
import random
import unittest
import random
@@
-94,6
+94,10
@@
class TestL2bd(VppTestCase):
super(TestL2bd, cls).tearDownClass()
raise
super(TestL2bd, cls).tearDownClass()
raise
+ @classmethod
+ def tearDownClass(cls):
+ super(TestL2bd, cls).tearDownClass()
+
def setUp(self):
"""
Clear trace and packet infos before running each test.
def setUp(self):
"""
Clear trace and packet infos before running each test.
@@
-122,7
+126,7
@@
class TestL2bd(VppTestCase):
:param count: Integer number of hosts to create MAC/IPv4 addresses for.
"""
n_int = len(cls.pg_interfaces)
:param count: Integer 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