Merge "Removed enumeration ALL from FlowWildCardsV10"
[openflowjava.git] / openflow-protocol-api / src / main / yang / openflow-action.yang
1 module openflow-action {
2     namespace "urn:opendaylight:openflow:common:action";
3     prefix "ofaction";
4
5     import openflow-types { prefix oft; }
6
7     revision "2013-07-31" {
8         description "OpenFlow 1.3 - action model";
9     }
10
11     identity output {
12         description " Output to switch port. ";
13         base oft:action;
14     }
15     identity copy_ttl_out {
16         description " Copy TTL \"outwards\" -- from next-to-outermost to outermost ";
17         base oft:action;
18     }
19     identity copy_ttl_in {
20         description " Copy TTL \"inwards\" -- from outermost to next-to-outermost ";
21         base oft:action;
22     }
23     identity set_mpls_ttl {
24         description " MPLS TTL ";
25         base oft:action;
26     }
27     identity dec_mpls_ttl {
28         description " Decrement MPLS TTL ";
29         base oft:action;
30     }
31     identity push_vlan {
32         description " Push a new VLAN tag ";
33         base oft:action;
34     }
35     identity pop_vlan {
36         description " Pop the outer VLAN tag ";
37         base oft:action;
38     }
39     identity push_mpls {
40         description " Push a new MPLS tag ";
41         base oft:action;
42     }
43     identity pop_mpls {
44         description " Pop the outer MPLS tag ";
45         base oft:action;
46     }
47     identity set_queue {
48         description " Set queue id when outputting to a port ";
49         base oft:action;
50     }
51     identity group {
52         description " Apply group. ";
53         base oft:action;
54     }
55     identity set_nw_ttl {
56         description " IP TTL. ";
57         base oft:action;
58     }
59     identity dec_nw_ttl {
60         description " Decrement IP TTL. ";
61         base oft:action;
62     }
63     identity set_field {
64         description " Set a header field using OXM TLV format. ";
65         base oft:action;
66     }
67     identity push_pbb {
68         description " Push a new PBB service tag (I-TAG) ";
69         base oft:action;
70     }
71     identity pop_pbb {
72         description " Pop the outer PBB service tag (I-TAG) ";
73         base oft:action;
74     }
75     identity experimenter {
76         description "";
77         base oft:action;
78     }
79     
80     container actions-container {
81         uses actions;
82     }
83     
84     grouping actions {
85         list actions-list {
86             key "action";
87             container action {
88                 leaf type {
89                     type identityref {
90                         base oft:action;
91                     }
92                 }
93             }
94         }
95     }
96     
97     // OF1.0 structures
98     identity set_vlan_vid {
99         description "";
100         base oft:action;
101     }
102     identity set_vlan_pcp {
103         description "";
104         base oft:action;
105     }
106     identity strip_vlan {
107         description "";
108         base oft:action;
109     }
110     identity set_dl_src {
111         description "";
112         base oft:action;
113     }
114     identity set_dl_dst {
115         description "";
116         base oft:action;
117     }
118     identity set_nw_src {
119         description "";
120         base oft:action;
121     }
122     identity set_nw_dst {
123         description "";
124         base oft:action;
125     }
126     identity set_nw_tos {
127         description "";
128         base oft:action;
129     }
130     identity set_tp_src {
131         description "";
132         base oft:action;
133     }
134     identity set_tp_dst {
135         description "";
136         base oft:action;
137     }
138     identity enqueue {
139         description "";
140         base oft:action;
141     }
142
143 }