Create l3vpn & asso with ext-nw failed 62/91762/5
authorKarthikeyan Krishnan <karthikeyangceb007@gmail.com>
Wed, 29 Jul 2020 16:01:31 +0000 (21:31 +0530)
committerKarthikeyan Krishnan <karthikeyangceb007@gmail.com>
Tue, 4 Aug 2020 12:54:31 +0000 (18:24 +0530)
commit2feb8577524f4ebe7fe53702a9fc8e602e901256
tree00acc5dbabda5fbd16a193f02951ec5e7df0fb63
parentb5df352e50340e8bc93da11c347dc2140d12388f
Create l3vpn & asso with ext-nw failed

Issue:
=======
Creation of SNAT use case via REST API fails creating vpn
(Creation and Association to VPN in Single REST API Call)

Using Jumbo RPC Call to create the internet BGP-VPN instance(l3vpn)
and at the same request call associate the external GRE provider network
also in a single REST API call is FAILED due to absence of vpn-instance
OPERATIONAL data store.

Solution:
==========
NeutronVPN YANG model has redesigned properly to work internet VPN
use case for both V4 and V6 networks.

"vpn-instance-op-data" should be created/updated/removed
by VPN Module only. Since it is VPN drivern OPERATIONAL data store.

Have modified the NeutronVPN design to just remove the
"vpn-instance-op-data" from NeutronVPN module to VPN Module.

"vpn-instance-op-data" is populated based on the CONFIG vpn-instance
data.

Signed-off-by: Karthikeyan Krishnan <karthikeyangceb007@gmail.com>
Change-Id: I6ff3e54c3302eb0ee3c6f238dc27f2567ca5f72a
neutronvpn/impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnManager.java
neutronvpn/impl/src/main/java/org/opendaylight/netvirt/neutronvpn/NeutronvpnUtils.java
vpnmanager/api/src/main/yang/odl-l3vpn.yang
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInstanceListener.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInterfaceManager.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnUtil.java