pyang fixes for inventory and topology models
[controller.git] / opendaylight / md-sal / model / model-flow-base / src / main / yang / opendaylight-queue-types.yang
1 module opendaylight-queue-types {
2     namespace "urn:opendaylight:flow:types:queue";
3     prefix queue-types;
4
5     import ietf-yang-types {prefix yang; revision-date "2010-09-24";}
6     
7     revision "2013-09-25" {
8         description "Initial revision of Queue Inventory model";
9     }
10     
11     typedef queue-id {
12             type yang:counter32;
13             description "id for the specific queue.";  
14         }
15     
16     typedef queue-properties {
17         type enumeration {
18             enum min_rate;
19             enum max_rate;
20         }
21     }
22    
23     
24     grouping common-queue {
25
26         leaf property {
27             type uint16;
28             description "One of OFPQT_.";  
29         }
30            
31     }
32     
33      
34     grouping queue-prop-min-rate        {
35                 
36                 uses common-queue;
37                 
38         leaf rate {
39             type uint16;
40             description "OFPQT_MIN, len: 16";  
41         }
42            
43     }
44       
45     grouping queue-prop-max-rate        {
46                 
47                 uses common-queue;
48                 
49         leaf rate {
50             type uint16;
51             description "OFPQT_MAX, len: 16";  
52         }
53            
54     }
55      grouping queue-packet      {
56                 
57                 
58         leaf queue-id {
59             type queue-id;
60             description "id for the specific queue.";  
61         }
62         
63         leaf port {
64             type uint32;
65             description "Port this queue is attached to.";  
66         }
67         uses common-queue;
68     }
69     
70    grouping queue-config-request 
71    {
72            leaf port {
73             type uint32;
74             description "Port to be queried.";  
75         }
76         
77     }
78 }