make test: fix broken interfaces
Change-Id: I2e092774f81503e04b53cc6c6b5d357fe3fc52ab Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
3e2d57d877
commit
d5c60b96a3
@ -558,18 +558,16 @@ class VppTestCase(unittest.TestCase):
|
||||
return result
|
||||
|
||||
@classmethod
|
||||
def create_loopback_interfaces(cls, interfaces):
|
||||
def create_loopback_interfaces(cls, count):
|
||||
"""
|
||||
Create loopback interfaces.
|
||||
|
||||
:param interfaces: iterable indexes of the interfaces.
|
||||
:param count: number of interfaces created.
|
||||
:returns: List of created interfaces.
|
||||
"""
|
||||
result = []
|
||||
for i in interfaces:
|
||||
intf = VppLoInterface(cls, i)
|
||||
result = [VppLoInterface(cls) for i in range(count)]
|
||||
for intf in result:
|
||||
setattr(cls, intf.name, intf)
|
||||
result.append(intf)
|
||||
cls.lo_interfaces = result
|
||||
return result
|
||||
|
||||
|
Reference in New Issue
Block a user