bbd61a9e7cbc46235a0474267bdc68e661594d8b
[openflowjava.git] / openflow-protocol-api / src / main / yang / openflow-instruction.yang
1 module openflow-instruction {
2     namespace "urn:opendaylight:openflow:common:instruction";
3     prefix "ofinstruction";
4
5     import openflow-types { prefix oft; }
6
7     revision "2013-07-31" {
8        // description "OpenFlow 1.3 - instruction model";
9     }
10
11     identity goto_table {
12         //description " Setup the next table in the lookup pipeline";
13         base oft:instruction;
14     }
15     identity write_metadata {
16         //description " Setup the metadata field for use later in     pipeline";
17         base oft:instruction;
18     }
19     identity write_actions {
20         description " Write the action(s) onto the datapath action set";
21         base oft:instruction;
22     }
23     identity apply_actions {
24         description " Applies the action(s) immediately";
25         base oft:instruction;
26     }
27     identity clear_actions {
28         description " Clears all actions from the datapath action set";
29         base oft:instruction;
30     }
31     identity meter {
32         description " Apply meter (rate limiter)";
33         base oft:instruction;
34     }
35     identity experimenter {
36         description "Experimenter instruction";
37         base oft:instruction;
38     }
39
40     container instruction-container {
41         uses instructions;
42     }
43
44     grouping instructions {
45         list instructions {
46             key "type";
47             leaf type {
48                 type identityref {
49                     base oft:instruction;
50                 }
51             }
52         }
53     }
54
55 }