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