def ip_to_mac(self, ip):
        (a, b, c, d) = ip.split('.')
        return "02:42:%02x:%02x:%02x:%02x" % (int(a), int(b), int(c), int(d))
dataset/ETHPy150Open open-cloud/xos/xos/services/vrouter/models.py/VRouterService.ip_to_mac/original