2 namespace "urn:opendaylight:l3vpn";
5 import yang-ext {prefix ext; revision-date "2013-07-09";}
6 import l3vpn { prefix l3vpn; revision-date "2014-08-15"; }
8 revision "2013-09-11" {
9 description "L3 VPN Service module";
12 grouping adjacency-list{
15 leaf nextHopIp { type string; }
16 leaf ip_address {type string;}
17 leaf label { type uint32; config "false"; } /* optional */
18 leaf mac_address {type string;} /* optional */
22 grouping vpn-route-list{
23 leaf-list route-entry-id{
28 augment "/l3vpn:vpn-interfaces/l3vpn:vpn-interface" {
29 ext:augment-identifier "adjacencies";
33 augment "/l3vpn:vpn-interfaces/l3vpn:vpn-interface" {
34 ext:augment-identifier "opState";
35 leaf stateUp {type boolean; config false;}
38 /* Operational DS containers for reverse lookups*/
39 container prefix-to-interface {
43 leaf vpn-id {type uint32;}
46 leaf ip_address {type string;}
50 leaf vpn-interface-name {
57 container vpn-to-extraroute {
63 "The vrf-id command configures a route distinguisher (RD)
64 for the IPv4 or IPv6 address family of a VPN instance or
65 vpn instance name for internal vpn case.";
70 leaf prefix {type string;}
78 /* Data models to adhere to restart requirements */
79 container vpn-instance-to-vpn-id {
81 key vpn-instance-name;
82 leaf vpn-instance-name {
90 "The vrf-id command configures a route distinguisher (RD)
91 for the IPv4 or IPv6 address family of a VPN instance or
92 vpn instance name for internal vpn case.";
98 container vpn-instance-op-data {
100 list vpn-instance-op-data-entry {
102 leaf vpn-id { type uint32;}
105 "The vrf-id command configures a route distinguisher (RD)
106 for the IPv4 or IPv6 address family of a VPN instance or
107 vpn instance name for internal vpn case.";
111 leaf vpn-interface-count { type uint32; }
113 list vpn-to-dpn-list {
118 list vpn-interfaces {
120 leaf interface-name {