def process_vm_event(self, msg, phy_uplink):
        LOG.info(_LI("In processing VM Event status %(status)s for MAC "
                     "%(mac)s UUID %(uuid)s oui %(oui)s"),
                 {'status': msg.get_status(), 'mac': msg.get_mac(),
                  'uuid': msg.get_port_uuid(), 'oui': msg.get_oui()})
        time.sleep(10)
        if msg.get_status() == 'up':
            res_fail = constants.CREATE_FAIL
        else:
            res_fail = constants.DELETE_FAIL
        if (not self.uplink_det_compl or
                phy_uplink not in self.ovs_vdp_obj_dict):
            LOG.error(_LE("Uplink Port Event not received yet"))
            self.update_vm_result(msg.get_port_uuid(), res_fail)
            return
        ovs_vdp_obj = self.ovs_vdp_obj_dict[phy_uplink]
        ret = ovs_vdp_obj.send_vdp_port_event(msg.get_port_uuid(),
                                              msg.get_mac(),
                                              msg.get_net_uuid(),
                                              msg.get_segmentation_id(),
                                              msg.get_status(),
                                              msg.get_oui())
        if not ret:
            LOG.error(_LE("Error in VDP port event, Err Queue enq"))
            self.update_vm_result(msg.get_port_uuid(), res_fail)
        else:
            self.update_vm_result(msg.get_port_uuid(),
                                  constants.RESULT_SUCCESS)
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/apps/saf/agent/vdp/dfa_vdp_mgr.py/VdpMgr.process_vm_event/original