Queue yang model 60/3060/1
authorusha <usha.m.s@ericsson.com>
Mon, 25 Nov 2013 12:19:23 +0000 (17:49 +0530)
committerusha <usha.m.s@ericsson.com>
Mon, 25 Nov 2013 12:22:30 +0000 (17:52 +0530)
Signed-off-by: usha <usha.m.s@ericsson.com>
Change-Id: If80f902ced0b053b197263462cce57c753c78608

opendaylight/md-sal/model/model-flow-base/src/main/yang/queue-types.yang [new file with mode: 0644]
opendaylight/md-sal/model/model-flow-management/src/main/yang/queue-config.yang [new file with mode: 0644]
opendaylight/md-sal/model/model-flow-service/src/main/yang/queue-service.yang [new file with mode: 0644]

diff --git a/opendaylight/md-sal/model/model-flow-base/src/main/yang/queue-types.yang b/opendaylight/md-sal/model/model-flow-base/src/main/yang/queue-types.yang
new file mode 100644 (file)
index 0000000..57a9237
--- /dev/null
@@ -0,0 +1,77 @@
+module opendaylight-queue-types {
+    namespace "urn:opendaylight:flow:types:queue";
+    prefix queue-types;
+
+    import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
+    import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
+    
+    revision "2013-09-25" {
+        description "Initial revision of Queue Inventory model";
+    }
+    
+    typedef queue-properties {
+        type enumeration {
+            enum min_rate;
+            enum max_rate;
+        }
+    }
+   
+    
+    grouping common-queue {
+
+        leaf property {
+            type uint16;
+            description "One of OFPQT_.";  
+        }
+           
+    }
+    
+     
+    grouping queue-prop-min-rate       {
+               
+               uses common-queue;
+               
+        leaf rate {
+            type uint16;
+            description "OFPQT_MIN, len: 16";  
+        }
+           
+    }
+    
+    
+      
+    grouping queue-prop-max-rate       {
+               
+               uses common-queue;
+               
+        leaf rate {
+            type uint16;
+            description "OFPQT_MAX, len: 16";  
+        }
+           
+    }
+     grouping queue-packet     {
+               
+               
+        leaf queue-id {
+            type uint32;
+            description "id for the specific queue.";  
+        }
+        
+        leaf port {
+            type uint32;
+            description "Port this queue is attached to.";  
+        }
+        uses common-queue;
+    }
+    
+   grouping queue-config-request 
+   {
+           leaf port {
+            type uint32;
+            description "Port to be queried.";  
+        }
+        
+        }
+ }
+}
\ No newline at end of file
diff --git a/opendaylight/md-sal/model/model-flow-management/src/main/yang/queue-config.yang b/opendaylight/md-sal/model/model-flow-management/src/main/yang/queue-config.yang
new file mode 100644 (file)
index 0000000..b362e3f
--- /dev/null
@@ -0,0 +1,34 @@
+module queue-management {
+    namespace "urn:opendaylight:queue:config";
+    prefix queue-cfg;
+
+    import yang-ext {prefix ext; revision-date "2013-07-09";}
+    import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}      
+     
+    import opendaylight-queue-types {prefix queue; revision-date "2013-09-25";}
+
+   
+    revision "2013-10-24" {
+        description "Initial revision of queue service";
+    }
+
+    grouping queue-entry {
+        leaf node {
+            type inv:node-connector-ref;
+           
+        }
+        uses queue:queue-config-request;
+    }   
+     
+    container queues {
+        list queue {
+            key "id node"; 
+                        
+            leaf id {
+                type uint32;
+            }                       
+            
+            uses queue-entry;
+        }
+    }    
+}
\ No newline at end of file
diff --git a/opendaylight/md-sal/model/model-flow-service/src/main/yang/queue-service.yang b/opendaylight/md-sal/model/model-flow-service/src/main/yang/queue-service.yang
new file mode 100644 (file)
index 0000000..bf79cbf
--- /dev/null
@@ -0,0 +1,29 @@
+module sal-queue {
+    namespace "urn:opendaylight:queue:service";
+    prefix queue;
+
+    import yang-ext {prefix ext; revision-date "2013-07-09";}
+    import opendaylight-inventory {prefix inv; revision-date "2013-08-19";}
+    import opendaylight-queue-types {prefix queue-type; revision-date "2013-09-25";}
+
+    revision "2013-11-07" {
+        description "Initial revision of queue service";
+    }        
+    
+    grouping node-queue {
+        uses "inv:node-context-ref";
+        
+        uses queue-type:queue-packet;
+    }
+
+     
+    rpc get-queue {
+        output {
+            uses queue-type:queue-packet;
+        }
+    }  
+    
+    notification queue-get-config-reply {
+        uses node-queue;
+    }
+}
\ No newline at end of file

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.