updating neutron-qos yang file for Qos Rule Types to change the model from Config...
[neutron.git] / model / src / main / yang / neutron-l2gateways.yang
index 01eb74c8aa8e7f7ae85c65aa1a2aa6649b4a3fe9..074d389bfff70ba371d559b6ccd5e6c36733e837 100644 (file)
@@ -11,7 +11,6 @@ module neutron-l2gateways{
     prefix neutron-l2gateways;
 
     import ietf-yang-types { prefix "yang"; }
-    import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
     import neutron-attrs { prefix "attrs"; }
 
     organization "OpenDaylight Neutron Group";
@@ -26,38 +25,43 @@ module neutron-l2gateways{
     }
 
     grouping l2gateway-connection-attributes {
-                leaf l2gateway-id {
-                    type yang:uuid;
-                }
-                leaf network-id {
-                    type yang:uuid;
-                }
-                leaf segment-id {
-                    type int32;
-                }
-                leaf port-id {
-                    type yang:uuid;
-                }
-     }
+        leaf l2gateway-id {
+            type yang:uuid;
+        }
+        leaf network-id {
+            type yang:uuid;
+        }
+        leaf segment-id {
+            type int32;
+        }
+        leaf port-id {
+            type yang:uuid;
+        }
+    }
 
     grouping l2gateway-attributes {
-        leaf l2gateway-name{
+        leaf l2gateway-name {
             type string;
         }
         list devices {
             description "Description of devices.";
-            leaf device-name{
+            key "uuid";
+            leaf uuid {
+                type yang:uuid;
+            }
+            leaf device-name {
                 type string;
             }
             list interfaces {
-               description "Description of interfaces";
-               leaf interface-name {
-                   type string;
-               }
-               leaf-list segmentation-ids {
-                description "Description of segmentations";
-                   type int32;
-               }
+                description "Description of interfaces";
+                key interface-name;
+                leaf interface-name {
+                    type string;
+                }
+                leaf-list segmentation-ids {
+                    description "Description of segmentations";
+                    type int32;
+                }
             }
         }
      }