MCPcopy Create free account
hub / github.com/mininet/mininet / linkIntfs

Function linkIntfs

examples/scratchnetuser.py:18–21  ·  view source on GitHub ↗

Create link from node1 to node2 and return intfs

( node1, node2 )

Source from the content-addressed store, hash-verified

16from mininet.log import setLogLevel, info
17
18def linkIntfs( node1, node2 ):
19 "Create link from node1 to node2 and return intfs"
20 link = Link( node1, node2 )
21 return link.intf1, link.intf2
22
23def scratchNetUser( cname='controller', cargs='ptcp:' ):
24 "Create network from scratch using user switch."

Callers 1

scratchNetUserFunction · 0.85

Calls 1

LinkClass · 0.90

Tested by

no test coverage detected