Merge "Add some log messages in case controller failed to add connected node."
[controller.git] / opendaylight / md-sal / model / model-flow-base / src / main / yang / port-types.yang
index af7c4dff531998dc150976f7c527e2258975e21f..bc05894da82637cfae12f61257fc79bdd2609500 100644 (file)
@@ -2,14 +2,21 @@ module opendaylight-port-types {
     namespace "urn:opendaylight:flow:types:port";
     prefix port-types;
 
-    import yang-ext {prefix ext;}
-    import ietf-inet-types {prefix inet;}
-    import ietf-yang-types {prefix yang;}
+    import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
+    import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
+    import opendaylight-queue-types {prefix queue-types; revision-date "2013-09-25";}
     
     revision "2013-09-25" {
         description "Initial revision of Port Inventory model";
     }
-
+    
+    typedef port-reason {
+        type enumeration {
+            enum add;
+            enum delete;
+            enum update;
+        }
+    }
     
     typedef port-config {
         type bits {
@@ -21,13 +28,12 @@ module opendaylight-port-types {
     }
     
     typedef port-state {
-            type enumeration {
-                enum LINK-DOWN;
-                enum BLOCKED;
-                enum LIVE;
+        type enumeration {
+            enum link-down;
+            enum blocked;
+            enum live;
         }
     }
-
     
     typedef port-features {
         type bits {
@@ -73,6 +79,21 @@ module opendaylight-port-types {
         }
     }
     
+    grouping flow-port-status {
+        leaf reason {
+            type port-reason;
+        }
+        
+        uses flow-capable-port;
+    }
+    
+    grouping queues {
+       list queue {
+               key "queue-id";
+               uses queue-types:queue-packet;
+       }
+    }
+    
     grouping flow-capable-port {    
                 
         uses common-port;
@@ -113,9 +134,11 @@ module opendaylight-port-types {
             units "kbps";
             description "Max port bit rate in kbps";            
         }
+        
+        uses queues;
     }    
     
-    grouping ofp-port-mod {
+    grouping port-mod {
         container port {
             list port {
                 key "port-mod-order";
@@ -126,10 +149,22 @@ module opendaylight-port-types {
                 uses common-port;
                 
                 leaf mask {
-                    type uint32;
+                    type port-config;
                     description "Bitmap of OFPPC-* flags to be changed";
-                }       
-            }
+                }      
+                
+                leaf container-name {
+                    type string; 
+                }
+            
+                leaf port-name {
+                    type string; 
+                } 
+
+                leaf barrier {
+                    type boolean; 
+                } 
+            }            
         }    
     }
 }
\ No newline at end of file