Bump versions by 0.1.0 for next dev cycle
[vpnservice.git] / vpnmanager / vpnmanager-api / src / main / yang / odl-l3vpn.yang
index 6857e98ec55b1a2c73624d70f5523b4e06cfda7c..5f0c708f5bf1fc2935cb9e4b24510b11402370ae 100644 (file)
@@ -122,6 +122,12 @@ module odl-l3vpn {
                       type string;
                   }
                }
+               list ip-addresses {
+                  key ip-address;
+                  leaf ip-address {
+                      type string;
+                  }
+               }
            }
         }
     }
@@ -234,4 +240,48 @@ module odl-l3vpn {
         }
     }
 
-}
\ No newline at end of file
+    grouping dpn-in-vpn-event {
+            leaf dpn-id { type uint64; }
+            leaf vpn-name { type string; }
+            leaf rd { type string; }
+        }
+
+        notification add-dpn-event {
+            container add-event-data {
+               uses dpn-in-vpn-event;
+            }
+        }
+
+        notification remove-dpn-event {
+            container remove-event-data {
+               uses dpn-in-vpn-event;
+            }
+        }
+
+
+      /* container to maintain mapping between neutron router and DPN(s) on which vpn-interfaces for router are present */
+    container neutron-router-dpns {
+        list router-dpn-list {
+            key router-id;
+            leaf router-id { type string;}
+            list dpn-vpninterfaces-list {
+                key dpn-id;
+                leaf dpn-id { type uint64;}
+                list router-interfaces { 
+                    key interface;
+                    leaf interface { type string; }
+                }
+            }
+        }
+    }
+
+
+    container router-interfaces {
+        list router-interface {
+            key interface-name;
+            leaf interface-name { type string; }
+            leaf router-name { type string; }
+        }
+    }
+
+}