Added flow capable node and augmentations to inventory
[controller.git] / opendaylight / md-sal / model / model-flow-service / src / main / yang / flow-node-inventory.yang
1 module flow-node-inventory {
2     namespace "urn:opendaylight:flow:inventory";
3     prefix flownode;
4
5     import yang-ext {prefix ext;}
6     import ietf-inet-types {prefix inet;}
7     import ietf-yang-types {prefix yang;}
8     import opendaylight-inventory {prefix inv;}
9     
10     revision "2013-08-19" {
11         description "Flow Capable Node extensions to the nventory model";
12     }
13     
14     grouping flow-capable-node-capabilities {
15         container tables {
16             leaf support-state {
17                 type inv:support-type;
18             }
19             
20         }
21         
22         container group-tables {
23         
24         }
25         
26         container supported-match-types {
27             list match-type {
28                 leaf match {
29                     type string; // FIXME: Add identity
30                 }
31                 leaf support-state {
32                     type inv:support-type;
33                 }
34             }
35         }
36         
37         container supported-instructions {
38             list instruction-type {
39                 leaf instruction {
40                     type string; // FIXME: Add identity
41                 }
42                 
43                 leaf support-state {
44                     type inv:support-type;
45                 }
46             }
47         }
48
49         container supported-actions {
50             list action-type {
51                 leaf action {
52                     type string; // FIXME: Add identity
53                 }
54                 
55                 leaf support-state {
56                     type inv:support-type;
57                 }
58             }
59         }
60     }
61     
62     augment "/inv:nodes/inv:node" {
63         augment-identifier "flow-capable-node";
64         uses flow-capable-node-capabilities;
65     }
66     
67     notification node-capabilities-updated {
68         uses flow-capable-node-capabilities;
69     }
70 }