I am trying to run the python script in my command prompt and the following error is showing:

Traceback (most recent call last):

File "Linear.py", line 14, in

class simpleMultiLinkTopo( Topo ):

File "Linear.py", line 21, in simpleMultiLinkTopo

s1 = self.addSwitch( 's1' )

NameError: name 'self' is not defined

Can anyone tell me the solution?

More Mohammad Nowsin Amin Sheikh's questions See All
Similar questions and discussions