Model changes for vpnservice
[vpnservice.git] / vpnmanager-api / src / main / yang / odl-l3vpn.yang
diff --git a/vpnmanager-api/src/main/yang/odl-l3vpn.yang b/vpnmanager-api/src/main/yang/odl-l3vpn.yang
new file mode 100644 (file)
index 0000000..1703bbe
--- /dev/null
@@ -0,0 +1,25 @@
+
+module odl-l3vpn {
+       namespace "urn:opendaylight:l3vpn";
+       prefix odl-l3vpn;
+       
+       import l3vpn { prefix l3vpn; revision-date "2014-08-15";}
+
+       revision "2013-09-11" {
+               description "L3 VPN Service module";
+       }
+
+       grouping next-hop-list{
+               list l3-next-hops{
+                       key "ip_address";
+                       leaf nextHopId { type uint32;}
+                       leaf ip_address {type string;}
+                       leaf label {type uint32;} /* optional */
+                       leaf mac_address {type string;} /* optional */
+               }
+       }
+
+       augment "/l3vpn:vpn-interfaces/l3vpn:vpn-interface" {
+               uses next-hop-list;
+       }
+}
\ No newline at end of file