l2: tests support python3 86/22886/2
authorOle Troan <ot@cisco.com>
Mon, 21 Oct 2019 18:37:30 +0000 (20:37 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 21 Oct 2019 19:53:30 +0000 (19:53 +0000)
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Id17bcb65d7eb27f865fc7872b3e485c09f1d29a7

test/test_l2bd.py
test/test_l2xc_multi_instance.py

index 718d512..ecd0311 100644 (file)
@@ -126,7 +126,7 @@ class TestL2bd(VppTestCase):
         :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
index f7cffa3..061656a 100644 (file)
@@ -141,7 +141,7 @@ class TestL2xcMultiInst(VppTestCase):
         :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