'Return IP address and MAC address based on ifconfig.'

def updateAddr(self):

    ifconfig = self.ifconfig()
    ips = self._ipMatchRegex.findall(ifconfig)
    macs = self._macMatchRegex.findall(ifconfig)
    self.ip = (ips[0] if ips else None)
    self.mac = (macs[0] if macs else None)
    return (self.ip, self.mac)
