l2: tests support python3

Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Id17bcb65d7eb27f865fc7872b3e485c09f1d29a7
This commit is contained in:
Ole Troan
2019-10-21 20:37:30 +02:00
committed by Andrew Yourtchenko
parent 203bf04d46
commit 3f2a956a44
2 changed files with 2 additions and 2 deletions

View 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

View 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