1
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

Vam
  • 11
  • 2

1 Answers1

-1

That part wires up clients in your topology,where port1 and port2:

Switch ports 1:uplink 2:hostlink 3:downlink
    uplink, hostlink, downlink = 1, 2, 3