X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=vpnservice%2Fvpnmanager%2Fvpnmanager-api%2Fsrc%2Fmain%2Fyang%2Fl3vpn.yang;h=c55cf0c60f97bd3f63684cbcd73a57128b8b7737;hb=ca1ff88e024180b9086c03d37b0b28df226a71bf;hp=ffd8e00a2fac0ad3e0ce16f55be6ed946181611f;hpb=52e0157c2b0cba8f398b8b0c80ab5eb6fe5c62ef;p=netvirt.git diff --git a/vpnservice/vpnmanager/vpnmanager-api/src/main/yang/l3vpn.yang b/vpnservice/vpnmanager/vpnmanager-api/src/main/yang/l3vpn.yang index ffd8e00a2f..c55cf0c60f 100644 --- a/vpnservice/vpnmanager/vpnmanager-api/src/main/yang/l3vpn.yang +++ b/vpnservice/vpnmanager/vpnmanager-api/src/main/yang/l3vpn.yang @@ -194,7 +194,7 @@ module l3vpn { "A set of configuration parameters that is applicable to both IPv4 and IPv6 address family for a VPN instance ."; - leaf route-distinguisher { + leaf-list route-distinguisher { description "The route-distinguisher command configures a route distinguisher (RD) for the IPv4 or IPv6 address family of a VPN instance. @@ -727,6 +727,29 @@ module l3vpn { description "The name of the vpn-instance."; } + leaf type { + description + "The type of the VPN Instance. + L3 indicates it is an L3VPN. + L2 indicates it is an EVPN"; + + type enumeration { + enum l3 { + value "0"; + description "L3VPN"; + } + enum l2 { + value "1"; + description "EVPN"; + } + } + default "l3"; + } + + leaf l3vni { + type uint32; + } + leaf description { description @@ -779,9 +802,32 @@ module l3vpn { path "/if:interfaces/if:interface/if:name"; } } - leaf vpn-instance-name { - type string { - length "1..40"; + list vpn-instance-names { + key "vpn-name"; + leaf vpn-name { + type string { + length "1..40"; + } + } + leaf associated-subnet-type { + type enumeration { + enum V4Subnet { + value "0"; + description "V4 Router Internal VPN"; + } + enum V6Subnet { + value "1"; + description "V6 Router Internal VPN"; + } + enum V6InternetVPN { + value "2"; + description "BGPVPN Internet"; + } + enum V4AndV6Subnets { + value "3"; + description "BGPVPN dual stack or V6/V4 Router or undefined"; + } + } } } leaf dpn-id { @@ -790,6 +836,9 @@ module l3vpn { leaf scheduled-for-remove { type boolean; } + leaf router-interface { + type boolean; + } } }