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