Small fix to model
[ovsdb.git] / southbound / southbound-api / src / main / yang / ovsdb.yang
index ba41c99aafc1d371dfde031f31605f21946f4652..a9d915b66526835a5562109ccd51dff283874c9d 100755 (executable)
@@ -13,6 +13,11 @@ module ovsdb {
         description "Initial revision of southbound model";
     }
 
+    typedef ovsdb-termination-point-ref {
+        description "A reference to an ovsdb termination point";
+        type instance-identifier;
+    }
+
     typedef ovsdb-bridge-ref {
         description "A reference to an ovsdb bridge";
         type instance-identifier;
@@ -109,7 +114,7 @@ module ovsdb {
     }
 
     identity ovsdb-fail-mode-secure {
-        definition "Identity for ovsdb-failmode standalone";
+        description "Identity for ovsdb-failmode standalone";
         base ovsdb-fail-mode-base;
     }
 
@@ -175,6 +180,10 @@ module ovsdb {
     grouping ovsdb-node-attributes {
         uses overlay:ip-port-locator;
 
+        leaf ovs-version {
+            type string;
+        }
+
         list managed-node-entry {
             key "bridge-ref";
             leaf bridge-ref {
@@ -204,7 +213,6 @@ module ovsdb {
 
      }
 
-
     identity interface-type-base {
         description "Base identity for all OVSDB interface types";
     }
@@ -274,6 +282,11 @@ module ovsdb {
         base interface-type-base;
     }
 
+    identity interface-type-dpdkvhost {
+        description "Interface type for dpdkvhost interfaces";
+        base interface-type-base;
+    }
+
     grouping ovsdb-port-interface-attributes {
         leaf port-uuid {
             description "The unique identifier of the OVSDB port";
@@ -290,12 +303,47 @@ module ovsdb {
             type string;
         }
 
+        leaf bridge-name {
+            description "Create termination point on this bridge";
+            type string;
+        }
+
         leaf interface-type {
             description "The type of the OVSDB interface";
             type identityref {
                 base interface-type-base;
             }
         }
+
+        list options {
+            description "Port/Interface related optional input values";
+            key "option";
+            leaf option {
+                description "Option name";
+                type string;
+            }
+            leaf value {
+                description "Option value";
+                type string;
+            }
+        }
+
+        leaf ofport {
+            description "Port/Interface related optional ofport";
+            type uint16;
+        }
+
+        leaf ofport_request {
+            description "Port/Interface related optional ofport_request, in range 1 to 65279";
+            type uint16 {
+                range "1..65279";
+            }
+        }
+
+        leaf attached-to {
+            description "Reference to the bridge where terminiation point is attached.";
+            type ovsdb-bridge-ref;
+        }
     }
 
     augment "/topo:network-topology/topo:topology/topo:node" {