Interface customized by tc (traffic control) utility Allows specification of bandwidth limits (various methods) as well as delay, loss and max queue length.
More...
|
def | bwCmds (self, bw=None, speedup=0, use_hfsc=False, use_tbf=False, latency_ms=None, enable_ecn=False, enable_red=False) |
| Return tc commands to set bandwidth.
|
|
def | tc (self, cmd, tc='tc') |
| Execute tc command for our interface.
|
|
def | config (self, bw=None, delay=None, jitter=None, loss=None, gro=False, txo=True, rxo=True, speedup=0, use_hfsc=False, use_tbf=False, latency_ms=None, enable_ecn=False, enable_red=False, max_queue_size=None, **params) |
| Configure the port and set its properties. More...
|
|
def | __init__ (self, name, node=None, port=None, link=None, mac=None, **params) |
|
def | cmd (self, *args, **kwargs) |
| Run a command in our owning node.
|
|
def | ifconfig (self, *args) |
| Configure ourselves using ifconfig.
|
|
def | setIP (self, ipstr, prefixLen=None) |
| Set our IP address.
|
|
def | setMAC (self, macstr) |
| Set the MAC address for an interface. More...
|
|
def | updateIP (self) |
| Return updated IP address based on ifconfig.
|
|
def | updateMAC (self) |
| Return updated MAC address based on ifconfig.
|
|
def | updateAddr (self) |
| Return IP address and MAC address based on ifconfig.
|
|
def | IP (self) |
| Return IP address.
|
|
def | MAC (self) |
| Return MAC address.
|
|
def | isUp (self, setUp=False) |
| Return whether interface is up.
|
|
def | rename (self, newname) |
| Rename interface.
|
|
def | setParam (self, results, method, **param) |
| Internal. More...
|
|
def | config (self, mac=None, ip=None, ifconfig=None, up=True, **_params) |
| Configure Node according to (optional) More...
|
|
def | delete (self) |
| Delete interface.
|
|
def | status (self) |
| Return intf status as a string.
|
|
def | __repr__ (self) |
|
def | __str__ (self) |
|
Interface customized by tc (traffic control) utility Allows specification of bandwidth limits (various methods) as well as delay, loss and max queue length.