def send_vdp_port_event_internal(self, port_uuid, mac, net_uuid,<EOL>segmentation_id, status, oui):
lldpad_port = self.lldpad_info<EOL>if not lldpad_port:<EOL><INDENT>fail_reason = "<STR_LIT>"<EOL>LOG.error("<STR_LIT:%s>", fail_reason)<EOL>return {'<STR_LIT:result>': False, '<STR_LIT>': fail_reason}<EOL><DEDENT>if status == '<STR_LIT>':<EOL><INDENT>if self.vdp_mode == constants.VDP_SEGMENT_MODE:<EOL><INDENT>port_name = self.ext_br_obj.get_ofport_name(port_uuid)<EOL>if port_name is None:<EOL><INDENT>fail_reason = "<STR_LIT>" % (port_uuid)<EOL>LOG.error("<STR_LIT:%s>", fail_reason)<EOL>return {'<STR_LIT:result>': False, '<STR_LIT>': fail_reason}<EOL><DEDENT>LOG.info("<STR_LIT>",<EOL>{'<STR_LIT>': port_uuid, '<STR_LIT:port>': port_name})<EOL>ret = self.port_up_segment_mode(lldpad_port, port_name,<EOL>port_uuid, mac, net_uuid,<EOL>segmentation_id, oui)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if self.vdp_mode == constants.VDP_SEGMENT_MODE:<EOL><INDENT>LOG.info("<STR_LIT>", port_uuid)<EOL>ret = self.port_down_segment_mode(lldpad_port, port_uuid,<EOL>mac, net_uuid,<EOL>segmentation_id, oui)<EOL><DEDENT><DEDENT>return ret<EOL>
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