def generate_jid(hostname=None): nd = NetDev() mac = nd.default_mac() name = filter(lambda k: k !=':', mac) server = (hostname, nd.hostname())[hostname is None] return str("%s@%s/SIGALA" % (name, server))
def main(self): # Returns the MAC of the default route or None if no MAC assigned nd = NetDev() return nd.default_mac()