self.addLink(h1, s1, port1=0, port2=hostlink, **lconfig)
Here, its creating a topology where host h1 and switch s1 are wired. I don't understand whats port1 and port2 here
self.addLink(h1, s1, port1=0, port2=hostlink, **lconfig)
Here, its creating a topology where host h1 and switch s1 are wired. I don't understand whats port1 and port2 here
That part wires up clients in your topology,where port1 and port2: