From dc22b0a8771982acf56731932a0b3e7d85f25898 Mon Sep 17 00:00:00 2001 From: vik_y Date: Tue, 27 Sep 2016 13:19:08 +0530 Subject: [PATCH] Changes override method from __init__ to build --- examples/simpleperf.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/simpleperf.py b/examples/simpleperf.py index d348d54..00104d2 100755 --- a/examples/simpleperf.py +++ b/examples/simpleperf.py @@ -21,8 +21,7 @@ from sys import argv class SingleSwitchTopo(Topo): "Single switch connected to n hosts." - def __init__(self, n=2, lossy=True, **opts): - Topo.__init__(self, **opts) + def build(self, n=2,lossy=True, **opts): switch = self.addSwitch('s1') for h in range(n): # Each host gets 50%/n of system CPU