code: def send_vdp_port_event_internal(self, port_uuid, mac, net_uuid,
                                       segmentation_id, status, oui):
          
          lldpad_port = self.lldpad_info
          if not lldpad_port:
              fail_reason = "There is no LLDPad port available."
              LOG.error("%s", fail_reason)
              return {'result': False, 'fail_reason': fail_reason}
  
          if status == 'up':
              if self.vdp_mode == constants.VDP_SEGMENT_MODE:
                  port_name = self.ext_br_obj.get_ofport_name(port_uuid)
                  if port_name is None:
                      fail_reason = "Unknown portname for uuid %s" % (port_uuid)
                      LOG.error("%s", fail_reason)
                      return {'result': False, 'fail_reason': fail_reason}
                  LOG.info("Status up: portname for uuid %(uuid)s is %(port)s",
                           {'uuid': port_uuid, 'port': port_name})
                  ret = self.port_up_segment_mode(lldpad_port, port_name,
                                                  port_uuid, mac, net_uuid,
                                                  segmentation_id, oui)
          else:
              if self.vdp_mode == constants.VDP_SEGMENT_MODE:
                  LOG.info("Status down for portname uuid %s", port_uuid)
                  ret = self.port_down_segment_mode(lldpad_port, port_uuid,
                                                    mac, net_uuid,
                                                    segmentation_id, oui)
          return ret
docs: Send vNIC UP/Down event to VDP.
  
          :param port_uuid: a ovslib.VifPort object.
          :mac: MAC address of the VNIC
          :param net_uuid: the net_uuid this port is to be associated with.
          :param segmentation_id: the VID for 'vlan' or tunnel ID for 'tunnel'
          :param status: Type of port event. 'up' or 'down'
          :oui: OUI Parameters