Set the MAC address for an interface. intf: intf or intf name mac: MAC address as string
( self, mac, intf=None )
| 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. |