def provision_vdp_overlay_networks(self, port_uuid, mac, net_uuid,
                                       segmentation_id, lvid, oui):
        lldpad_port = self.lldpad_info
        if lldpad_port:
            ovs_cb_data = {'obj': self, 'port_uuid': port_uuid, 'mac': mac,
                           'net_uuid': net_uuid}
            vdp_vlan = lldpad_port.send_vdp_vnic_up(
                port_uuid=port_uuid, vsiid=port_uuid, gid=segmentation_id,
                mac=mac, new_network=True, oui=oui,
                vsw_cb_fn=self.vdp_vlan_change, vsw_cb_data=ovs_cb_data)
        else:
            LOG.error(_LE("There is no LLDPad port available."))
            return False, cconstants.INVALID_VLAN
        # check validity
        if not ovs_lib.is_valid_vlan_tag(vdp_vlan):
            LOG.error(_LE("Cannot provision VDP Overlay network for"
                      " net-id=%(net_uuid)s - Invalid "),
                      {'net_uuid': net_uuid})
            return True, cconstants.INVALID_VLAN

        LOG.info(_LI('provision_vdp_overlay_networks: add_flow for '
                     'Local Vlan %(local_vlan)s VDP VLAN %(vdp_vlan)s'),
                 {'local_vlan': lvid, 'vdp_vlan': vdp_vlan})
        # outbound
        self.ext_br_obj.add_flow(priority=4,
                                 in_port=self.phy_peer_port_num, dl_vlan=lvid,
                                 actions="mod_vlan_vid:%s,normal" % vdp_vlan)
        # inbound
        self.integ_br_obj.add_flow(priority=3,
                                   in_port=self.int_peer_port_num,
                                   dl_vlan=vdp_vlan,
                                   actions="mod_vlan_vid:%s,normal" % lvid)
        return True, vdp_vlan
Provisions a overlay type network configured using VDP.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/apps/saf/agent/vdp/ovs_vdp.py/OVSNeutronVdp.provision_vdp_overlay_networks