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

Method setMAC

mininet/node.py:557–561  ·  view source on GitHub ↗

Set the MAC address for an interface. intf: intf or intf name mac: MAC address as string

( self, mac, intf=None )

Source from the content-addressed store, hash-verified

555 # Convenience and configuration methods
556
557 def setMAC( self, mac, intf=None ):
558 """Set the MAC address for an interface.
559 intf: intf or intf name
560 mac: MAC address as string"""
561 return self.intf( intf ).setMAC( mac )
562
563 def setIP( self, ip, prefixLen=8, intf=None, **kwargs ):
564 """Set the IP address for an interface.

Callers

nothing calls this directly

Calls 1

intfMethod · 0.95

Tested by

no test coverage detected