1 module openflow-augments {
\r
2 namespace "urn:opendaylight:openflow:augments";
\r
5 import yang-ext {prefix ext;}
\r
6 import ietf-inet-types {prefix inet;}
\r
7 import ietf-yang-types {prefix yang;}
\r
9 import openflow-types {prefix oft;}
\r
10 import openflow-protocol {prefix ofproto;}
\r
11 import openflow-action {prefix ofaction;}
\r
12 import openflow-instruction {prefix ofinstruction;}
\r
13 import openflow-extensible-match {prefix oxm;}
\r
15 revision "2013-10-02" {
\r
16 description "OpenFlow 1.3 - augments model";
\r
19 // OFP_MATCH AUGMENTS
\r
20 augment "/oxm:oxm-container/oxm:match-entries" {
\r
21 ext:augment-identifier "port-number-match-entry";
\r
23 type oft:port-number;
\r
26 augment "/oxm:oxm-container/oxm:match-entries" {
\r
27 ext:augment-identifier "metadata-match-entry";
\r
32 augment "/oxm:oxm-container/oxm:match-entries" {
\r
33 ext:augment-identifier "mask-match-entry";
\r
38 augment "/oxm:oxm-container/oxm:match-entries" {
\r
39 ext:augment-identifier "mac-address-match-entry";
\r
41 type yang:mac-address;
\r
44 augment "/oxm:oxm-container/oxm:match-entries" {
\r
45 ext:augment-identifier "eth-type-match-entry";
\r
47 type oft:ether-type;
\r
50 augment "/oxm:oxm-container/oxm:match-entries" {
\r
51 ext:augment-identifier "vlan-vid-match-entry";
\r
59 augment "/oxm:oxm-container/oxm:match-entries" {
\r
60 ext:augment-identifier "vlan-pcp-match-entry";
\r
65 augment "/oxm:oxm-container/oxm:match-entries" {
\r
66 ext:augment-identifier "dscp-match-entry";
\r
71 augment "/oxm:oxm-container/oxm:match-entries" {
\r
72 ext:augment-identifier "ecn-match-entry";
\r
77 augment "/oxm:oxm-container/oxm:match-entries" {
\r
78 ext:augment-identifier "protocol-number-match-entry";
\r
79 leaf protocol-number {
\r
83 augment "/oxm:oxm-container/oxm:match-entries" {
\r
84 ext:augment-identifier "port-match-entry";
\r
86 type inet:port-number;
\r
89 augment "/oxm:oxm-container/oxm:match-entries" {
\r
90 ext:augment-identifier "icmpv4-type-match-entry";
\r
95 augment "/oxm:oxm-container/oxm:match-entries" {
\r
96 ext:augment-identifier "icmpv4-code-match-entry";
\r
101 augment "/oxm:oxm-container/oxm:match-entries" {
\r
102 ext:augment-identifier "op-code-match-entry";
\r
107 augment "/oxm:oxm-container/oxm:match-entries" {
\r
108 ext:augment-identifier "ipv6-flabel-match-entry";
\r
110 type inet:ipv6-flow-label;
\r
113 augment "/oxm:oxm-container/oxm:match-entries" {
\r
114 ext:augment-identifier "icmpv6-type-match-entry";
\r
119 augment "/oxm:oxm-container/oxm:match-entries" {
\r
120 ext:augment-identifier "icmpv6-code-match-entry";
\r
125 augment "/oxm:oxm-container/oxm:match-entries" {
\r
126 ext:augment-identifier "ipv6-address-match-entry";
\r
127 leaf ipv6-address {
\r
128 type inet:ipv6-address;
\r
131 augment "/oxm:oxm-container/oxm:match-entries" {
\r
132 ext:augment-identifier "ipv4-address-match-entry";
\r
133 leaf ipv4-address {
\r
134 type inet:ipv4-address;
\r
137 augment "/oxm:oxm-container/oxm:match-entries" {
\r
138 ext:augment-identifier "mpls-label-match-entry";
\r
143 augment "/oxm:oxm-container/oxm:match-entries" {
\r
144 ext:augment-identifier "tc-match-entry";
\r
149 augment "/oxm:oxm-container/oxm:match-entries" {
\r
150 ext:augment-identifier "bos-match-entry";
\r
155 augment "/oxm:oxm-container/oxm:match-entries" {
\r
156 ext:augment-identifier "isid-match-entry";
\r
161 augment "/oxm:oxm-container/oxm:match-entries" {
\r
162 ext:augment-identifier "pseudo-field-match-entry";
\r
163 leaf pseudo-field {
\r
164 type oft:ipv6-exthdr-flags;
\r
168 // OFP_ACTION AUGMENTS
\r
169 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
170 ext:augment-identifier "port-action";
\r
172 type oft:port-number;
\r
175 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
176 ext:augment-identifier "max-length-action";
\r
181 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
182 ext:augment-identifier "mpls-ttl-action";
\r
187 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
188 ext:augment-identifier "ethertype-action";
\r
190 type oft:ether-type;
\r
193 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
194 ext:augment-identifier "queue-id-action";
\r
199 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
200 ext:augment-identifier "group-id-action";
\r
205 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
206 ext:augment-identifier "nw-ttl-action";
\r
211 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
212 ext:augment-identifier "oxm-fields-action";
\r
213 uses oxm:oxm-fields;
\r
215 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
216 ext:augment-identifier "experimenter-action";
\r
217 leaf experimenter {
\r
221 // OF1.0 structures
\r
222 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
223 ext:augment-identifier "vlan-vid-action";
\r
228 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
229 ext:augment-identifier "vlan-pcp-action";
\r
234 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
235 ext:augment-identifier "dl-address-action";
\r
237 type yang:mac-address;
\r
240 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
241 ext:augment-identifier "nw-tos-action";
\r
246 augment "/ofaction:actions-container/ofaction:actions-list/ofaction:action" {
\r
247 ext:augment-identifier "ip-address-action";
\r
249 type inet:ipv4-address;
\r
253 // OFP_TABLE_FEATURES_PROPERTIES AUGMENTS
\r
254 augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
\r
255 ext:augment-identifier "instruction-related-table-feature-property";
\r
256 uses ofinstruction:instructions;
\r
258 augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
\r
259 ext:augment-identifier "next-table-related-table-feature-property";
\r
260 list next-table-ids {
\r
267 augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
\r
268 ext:augment-identifier "action-related-table-feature-property";
\r
269 uses ofaction:actions;
\r
271 augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
\r
272 ext:augment-identifier "oxm-related-table-feature-property";
\r
273 uses oxm:oxm-fields;
\r
275 augment "/ofproto:table-features-properties-container/ofproto:table-feature-properties" {
\r
276 ext:augment-identifier "experimenter-related-table-feature-property";
\r
277 leaf experimenter {
\r
288 // OFP_INSTRUCTION AUGMENTS
\r
289 augment "/ofinstruction:instruction-container/ofinstruction:instructions" {
\r
290 ext:augment-identifier "table-id-instruction";
\r
295 augment "/ofinstruction:instruction-container/ofinstruction:instructions" {
\r
296 ext:augment-identifier "metadata-instruction";
\r
300 leaf metadata-mask {
\r
304 augment "/ofinstruction:instruction-container/ofinstruction:instructions" {
\r
305 ext:augment-identifier "actions-instruction";
\r
306 uses ofaction:actions;
\r
308 augment "/ofinstruction:instruction-container/ofinstruction:instructions" {
\r
309 ext:augment-identifier "meter-id-instruction";
\r
314 augment "/ofinstruction:instruction-container/ofinstruction:instructions" {
\r
315 ext:augment-identifier "experimenter-instruction";
\r
316 leaf experimenter {
\r
324 // OFP_QUEUE_PROP AUGMENTS
\r
325 augment "/ofproto:queue-prop-container/ofproto:queue-property" {
\r
326 ext:augment-identifier "rate-queue-property";
\r
331 augment "/ofproto:queue-prop-container/ofproto:queue-property" {
\r
332 ext:augment-identifier "experimenter-queue-property";
\r
333 leaf experimenter {
\r
341 // OFP_ERROR_AUGMENTS (only experimenter till OpenFlow v1.3)
\r
342 augment "/ofproto:error-message" {
\r
343 ext:augment-identifier "experimenter-error";
\r
347 leaf experimenter {
\r