A basic link is just a veth pair.
More...
|
def | __init__ (self, node1, node2, port1=None, port2=None, intfName1=None, intfName2=None, addr1=None, addr2=None, intf=Intf, cls1=None, cls2=None, params1=None, params2=None, fast=True, **params) |
| Create veth link to another node, making two new interfaces. More...
|
|
def | intfName (self, node, n) |
| Construct a canonical interface name node-ethN for interface n.
|
|
def | makeIntfPair (cls, intfname1, intfname2, addr1=None, addr2=None, node1=None, node2=None, deleteIntfs=True) |
| Create pair of interfaces. More...
|
|
def | delete (self) |
| Delete this link.
|
|
def | stop (self) |
| Override to stop and clean up link as needed.
|
|
def | status (self) |
| Return link status as a string.
|
|
def | __str__ (self) |
|
A basic link is just a veth pair.
Other types of links could be tunnels, link emulators, etc..
◆ __init__()
def mininet.link.Link.__init__ |
( |
|
self, |
|
|
|
node1, |
|
|
|
node2, |
|
|
|
port1 = None , |
|
|
|
port2 = None , |
|
|
|
intfName1 = None , |
|
|
|
intfName2 = None , |
|
|
|
addr1 = None , |
|
|
|
addr2 = None , |
|
|
|
intf = Intf , |
|
|
|
cls1 = None , |
|
|
|
cls2 = None , |
|
|
|
params1 = None , |
|
|
|
params2 = None , |
|
|
|
fast = True , |
|
|
** |
params |
|
) |
| |
Create veth link to another node, making two new interfaces.
- Parameters
-
node1 | first node |
node2 | second node |
port1 | node1 port number (optional) |
port2 | node2 port number (optional) |
intf | default interface class/constructor cls1, |
cls2 | optional interface-specific constructors |
intfName1 | node1 interface name (optional) |
intfName2 | node2 interface name (optional) |
params1 | parameters for interface 1 (optional) |
params2 | parameters for interface 2 (optional) ** |
params | additional parameters for both interfaces |
◆ makeIntfPair()
def mininet.link.Link.makeIntfPair |
( |
|
cls, |
|
|
|
intfname1, |
|
|
|
intfname2, |
|
|
|
addr1 = None , |
|
|
|
addr2 = None , |
|
|
|
node1 = None , |
|
|
|
node2 = None , |
|
|
|
deleteIntfs = True |
|
) |
| |
Create pair of interfaces.
- Parameters
-
intfname1 | name for interface 1 |
intfname2 | name for interface 2 |
addr1 | MAC address for interface 1 (optional) |
addr2 | MAC address for interface 2 (optional) |
node1 | home node for interface 1 (optional) |
node2 | home node for interface 2 (optional) (override this method [and possibly delete()] to change link type) |
The documentation for this class was generated from the following file: