mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-02 15:24:53 +00:00
tests: cleanup infra
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
cd453c23f6
commit
66707495d9
@ -161,12 +161,10 @@ class Mininet(Micronet):
|
||||
|
||||
g_mnet_inst = None
|
||||
|
||||
def __init__(self, controller=None):
|
||||
def __init__(self):
|
||||
"""
|
||||
Create a Micronet.
|
||||
"""
|
||||
assert not controller
|
||||
|
||||
if Mininet.g_mnet_inst is not None:
|
||||
Mininet.g_mnet_inst.stop()
|
||||
Mininet.g_mnet_inst = self
|
||||
|
||||
@ -212,7 +212,7 @@ class Topogen(object):
|
||||
# Mininet(Micronet) to build the actual topology.
|
||||
assert not inspect.isclass(topodef)
|
||||
|
||||
self.net = Mininet(controller=None)
|
||||
self.net = Mininet()
|
||||
|
||||
# New direct way: Either a dictionary defines the topology or a build function
|
||||
# is supplied, or a json filename all of which build the topology by calling
|
||||
|
||||
Loading…
Reference in New Issue
Block a user