aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_l2bd_multi_instance.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-01-04 12:58:53 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-11 23:26:16 +0000
commitda505f608e0919c45089dc80f9e3e16330a6551a (patch)
tree9ed1acf859ac883ba96e64b6f791047d1d6691b1 /test/test_l2bd_multi_instance.py
parenta48ad28256d0bc0de8a64f4b04f86fde39248d67 (diff)
make test: improve documentation and PEP8 compliance
Change-Id: Ib4f0353aab6112fcc3c3d8f0bcbed5bc4b567b9b Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/test_l2bd_multi_instance.py')
-rw-r--r--test/test_l2bd_multi_instance.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/test_l2bd_multi_instance.py b/test/test_l2bd_multi_instance.py
index a12262224d0..e24a8613fdf 100644
--- a/test/test_l2bd_multi_instance.py
+++ b/test/test_l2bd_multi_instance.py
@@ -95,10 +95,10 @@ class TestL2bdMultiInst(VppTestCase):
for i in range(0, len(cls.pg_interfaces), 3):
cls.flows[cls.pg_interfaces[i]] = [cls.pg_interfaces[i + 1],
cls.pg_interfaces[i + 2]]
- cls.flows[cls.pg_interfaces[i + 1]] = [cls.pg_interfaces[i],
- cls.pg_interfaces[i + 2]]
- cls.flows[cls.pg_interfaces[i + 2]] = [cls.pg_interfaces[i],
- cls.pg_interfaces[i + 1]]
+ cls.flows[cls.pg_interfaces[i + 1]] = \
+ [cls.pg_interfaces[i], cls.pg_interfaces[i + 2]]
+ cls.flows[cls.pg_interfaces[i + 2]] = \
+ [cls.pg_interfaces[i], cls.pg_interfaces[i + 1]]
# Mapping between packet-generator index and lists of test hosts
cls.hosts_by_pg_idx = dict()
@@ -172,8 +172,9 @@ class TestL2bdMultiInst(VppTestCase):
def create_bd_and_mac_learn(self, count, start=1):
"""
- Create required number of bridge domains with MAC learning enabled, put
- 3 l2-pg interfaces to every bridge domain and send MAC learning packets.
+ Create required number of bridge domains with MAC learning enabled,
+ put 3 l2-pg interfaces to every bridge domain and send MAC learning
+ packets.
:param int count: Number of bridge domains to be created.
:param int start: Starting number of the bridge domain ID.