Merge "Remove old drop-test module and files."
[openflowplugin.git] / model / model-flow-service / src / main / yang / sal-table.yang
1 module sal-table {
2     namespace "urn:opendaylight:table:service";
3     prefix table;
4
5     import opendaylight-inventory {prefix inv;revision-date "2013-08-19";}
6     import opendaylight-table-types {prefix table-type;revision-date "2013-10-26";}
7     import flow-capable-transaction {prefix tr; revision-date "2015-03-04";}
8     import opendaylight-multipart-types { prefix multipart; revision-date "2017-01-12"; }
9
10     description "Openflow table management.";
11
12     revision "2013-10-26" {
13         description "Initial revision of table service";
14     }
15     
16     grouping table-update {
17         description "Openflow table configuration structure suitable for rpc (contains node-context-ref)";
18
19         uses "inv:node-context-ref";
20         container original-table {
21             uses table-type:table-features;
22         }
23         container updated-table {
24             uses table-type:table-features;
25         }
26     }
27     
28     rpc update-table {
29         description "Configuring openflow table.";
30         
31         input {
32             uses tr:transaction-metadata;
33             leaf table-ref {
34                     type table-type:table-ref;
35             }
36             uses table-update;
37             uses tr:transaction-aware;
38         }
39         output {
40             uses tr:transaction-aware;
41         }
42     }
43     
44     notification table-updated {
45         status deprecated;
46
47         uses "inv:node-context-ref";
48         uses tr:multipart-transaction-aware;
49         uses table-type:table-features;
50     }
51
52
53     augment "/multipart:multipart-reply/multipart:multipart-reply-body" {
54         case multipart-reply-table-features {
55             uses table-type:table-features;
56         }
57     }
58 }