summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_multiview_topo1
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2021-08-27 20:28:29 +0200
committerChristian Hopps <chopps@labn.net>2021-09-04 15:04:46 +0200
commit8db751b853560377ebd640c729ecb4e155e6a6d7 (patch)
tree51a8419faf7cc64401f05b13c95a30895c5cd2f9 /tests/topotests/bgp_multiview_topo1
parenttests: micronet: update infra (diff)
downloadfrr-8db751b853560377ebd640c729ecb4e155e6a6d7.tar.xz
frr-8db751b853560377ebd640c729ecb4e155e6a6d7.zip
tests: micronet: adapt tests
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'tests/topotests/bgp_multiview_topo1')
-rw-r--r--tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py
index caaa81066..a949c5282 100644
--- a/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py
+++ b/tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py
@@ -70,17 +70,12 @@ import glob
import json
from time import sleep
-from mininet.topo import Topo
-from mininet.net import Mininet
-from mininet.node import Node, OVSSwitch, Host
-from mininet.log import setLogLevel, info
-from mininet.cli import CLI
-from mininet.link import Intf
-
from functools import partial
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from lib import topotest
+from lib.micronet_compat import Mininet
+from lib.micronet_compat import Topo
pytestmark = [pytest.mark.bgpd]
@@ -121,10 +116,10 @@ class NetworkTopo(Topo):
# Setup Switches
switch = {}
# First switch is for a dummy interface (for local network)
- switch[0] = self.addSwitch("sw0", cls=topotest.LegacySwitch)
+ switch[0] = self.addSwitch("sw0")
self.addLink(switch[0], router[1], intfName2="r1-stub")
# Second switch is for connection to all peering routers
- switch[1] = self.addSwitch("sw1", cls=topotest.LegacySwitch)
+ switch[1] = self.addSwitch("sw1")
self.addLink(switch[1], router[1], intfName2="r1-eth0")
for j in range(1, 9):
self.addLink(switch[1], peer[j], intfName2="peer%s-eth0" % j)
@@ -353,8 +348,6 @@ def test_shutdown_check_memleak():
if __name__ == "__main__":
-
- setLogLevel("info")
# To suppress tracebacks, either use the following pytest call or add "--tb=no" to cli
# retval = pytest.main(["-s", "--tb=no"])
retval = pytest.main(["-s"])