'Configure Node according to (optional) parameters:
mac: MAC address
ip: IP address
ifconfig: arbitrary interface configuration
Subclasses should override this method and call
the parent class\'s config(**params)'

def config(self, mac=None, ip=None, ifconfig=None, up=True, **_params):

    r = {}
    self.setParam(r, 'setMAC', mac=mac)
    self.setParam(r, 'setIP', ip=ip)
    self.setParam(r, 'isUp', up=up)
    self.setParam(r, 'ifconfig', ifconfig=ifconfig)
    return r
