4 namespace "urn:opendaylight:openflowjava:nx:match";
7 import openflow-extensible-match {prefix ofoxm;}
8 import openflow-types {prefix oft;}
9 import ietf-yang-types {prefix yang; revision-date "2013-07-15";}
10 import yang-ext {prefix ext; revision-date "2013-07-09";}
11 import ietf-inet-types {prefix inet; revision-date "2013-07-15";}
14 "Nicira openflow extensions of match.";
16 revision "2014-04-21" {
17 description "Initial revision";
21 base ofoxm:match-field;
24 identity nxm-nx-reg0 {
27 identity nxm-nx-reg1 {
30 identity nxm-nx-reg2 {
33 identity nxm-nx-reg3 {
36 identity nxm-nx-reg4 {
39 identity nxm-nx-reg5 {
42 identity nxm-nx-reg6 {
45 identity nxm-nx-reg7 {
48 identity nxm-nx-tun-id {
49 base ofoxm:match-field;
51 identity nxm-nx-arp-sha {
52 base ofoxm:match-field;
54 identity nxm-nx-arp-tha {
55 base ofoxm:match-field;
57 identity nxm-of-arp-op {
58 base ofoxm:match-field;
60 identity nxm-of-arp-spa {
61 base ofoxm:match-field;
63 identity nxm-of-arp-tpa {
64 base ofoxm:match-field;
66 identity nxm-nx-tun-ipv4-dst {
67 base ofoxm:match-field;
69 identity nxm-nx-tun-ipv4-src {
70 base ofoxm:match-field;
72 identity nxm-of-eth-src {
73 base ofoxm:match-field;
75 identity nxm-of-eth-dst {
76 base ofoxm:match-field;
78 identity nxm-of-eth-type {
79 base ofoxm:match-field;
82 base ofoxm:match-field;
85 base ofoxm:match-field;
87 identity nxm-nx-nshc-1 {
88 base ofoxm:match-field;
90 identity nxm-nx-nshc-2 {
91 base ofoxm:match-field;
93 identity nxm-nx-nshc-3 {
94 base ofoxm:match-field;
96 identity nxm-nx-nshc-4 {
97 base ofoxm:match-field;
99 identity nxm-of-tcp-src {
100 base ofoxm:match-field;
102 identity nxm-of-tcp-dst {
103 base ofoxm:match-field;
105 identity nxm-of-udp-src {
106 base ofoxm:match-field;
108 identity nxm-of-udp-dst {
109 base ofoxm:match-field;
111 identity nxm-nx-ct-state {
112 base ofoxm:match-field;
114 identity nxm-nx-ct-zone {
115 base ofoxm:match-field;
117 identity nxm-of-ip-dst {
118 base ofoxm:match-field;
120 identity nxm-of-ip-src {
121 base ofoxm:match-field;
123 identity nxm-of-icmp-type {
124 base ofoxm:match-field;
126 identity nxm-nx-encap-eth-type {
127 base ofoxm:match-field;
129 identity nxm-nx-encap-eth-src {
130 base ofoxm:match-field;
132 identity nxm-nx-encap-eth-dst {
133 base ofoxm:match-field;
135 identity nxm-nx-nsh-mdtype {
136 base ofoxm:match-field;
138 identity nxm-nx-nsh-np {
139 base ofoxm:match-field;
141 identity nxm-nx-tun-gpe-np {
142 base ofoxm:match-field;
146 grouping ofj-nxm-nx-match-reg-grouping {
147 container reg-values {
153 grouping ofj-nxm-nx-match-tun-id-grouping {
154 container tun-id-values {
160 grouping ofj-nxm-nx-match-arp-sha-grouping {
161 container arp-sha-values {
163 type yang:mac-address;
167 grouping ofj-nxm-nx-match-arp-tha-grouping {
168 container arp-tha-values {
170 type yang:mac-address;
174 grouping ofj-nxm-of-match-arp-op-grouping {
175 container arp-op-values {
181 grouping ofj-nxm-of-match-arp-spa-grouping {
182 container arp-spa-values {
188 grouping ofj-nxm-of-match-arp-tpa-grouping {
189 container arp-tpa-values {
195 grouping ofj-nxm-nx-match-tun-ipv4-dst-grouping {
196 container tun-ipv4-dst-values {
202 grouping ofj-nxm-nx-match-tun-ipv4-src-grouping {
203 container tun-ipv4-src-values {
209 grouping ofj-nxm-of-match-eth-src-grouping {
210 container eth-src-values {
212 type yang:mac-address;
216 grouping ofj-nxm-of-match-eth-dst-grouping {
217 container eth-dst-values {
219 type yang:mac-address;
223 grouping ofj-nxm-of-match-eth-type-grouping {
224 container eth-type-values {
231 grouping ofj-nxm-nx-match-nsp-grouping {
232 container nsp-values {
239 grouping ofj-nxm-nx-match-nsi-grouping {
240 container nsi-values {
247 grouping ofj-nxm-nx-match-nshc-grouping {
253 grouping ofj-nxm-nx-match-nshc-1-grouping {
254 container nshc-1-values {
255 uses ofj-nxm-nx-match-nshc-grouping;
258 grouping ofj-nxm-nx-match-nshc-2-grouping {
259 container nshc-2-values {
260 uses ofj-nxm-nx-match-nshc-grouping;
263 grouping ofj-nxm-nx-match-nshc-3-grouping {
264 container nshc-3-values {
265 uses ofj-nxm-nx-match-nshc-grouping;
268 grouping ofj-nxm-nx-match-nshc-4-grouping {
269 container nshc-4-values {
270 uses ofj-nxm-nx-match-nshc-grouping;
273 grouping ofj-nxm-of-match-tcp-src-grouping {
274 container tcp-src-values {
276 type inet:port-number;
283 grouping ofj-nxm-of-match-tcp-dst-grouping {
284 container tcp-dst-values {
286 type inet:port-number;
293 grouping ofj-nxm-of-match-udp-src-grouping {
294 container udp-src-values {
296 type inet:port-number;
303 grouping ofj-nxm-of-match-udp-dst-grouping {
304 container udp-dst-values {
306 type inet:port-number;
313 grouping ofj-nxm-nx-match-ct-state-grouping{
314 container ct-state-values {
323 grouping ofj-nxm-nx-match-ct-zone-grouping{
324 container ct-zone-values {
330 grouping ofj-nxm-of-match-ip-dst-grouping {
331 container ip-dst-values {
337 grouping ofj-nxm-of-match-ip-src-grouping {
338 container ip-src-values {
344 grouping ofj-nxm-of-match-icmp-type-grouping {
345 container icmp-type-values {
351 grouping ofj-nxm-nx-match-encap-eth-type-grouping {
352 container encap-eth-type-values {
353 leaf encap-eth-type {
358 grouping ofj-nxm-nx-match-encap-eth-src-grouping {
359 container encap-eth-src-values {
361 type yang:mac-address;
365 grouping ofj-nxm-nx-match-encap-eth-dst-grouping {
366 container encap-eth-dst-values {
368 type yang:mac-address;
372 grouping ofj-nxm-nx-match-nsh-mdtype-grouping {
373 container nsh-mdtype-values {
379 grouping ofj-nxm-nx-match-nsh-np-grouping {
380 container nsh-np-values {
386 grouping ofj-nxm-nx-match-tun-gpe-np-grouping {
387 container tun-gpe-np-values {
394 augment "/ofoxm:oxm-container/ofoxm:match-entry-value" {
395 ext:augment-identifier "ofj-aug-nx-match";
396 case reg-case-value {
397 uses ofj-nxm-nx-match-reg-grouping;
399 case tun-id-case-value {
400 uses ofj-nxm-nx-match-tun-id-grouping;
402 case arp-sha-case-value {
403 uses ofj-nxm-nx-match-arp-sha-grouping;
405 case arp-tha-case-value {
406 uses ofj-nxm-nx-match-arp-tha-grouping;
408 case arp-op-case-value {
409 uses ofj-nxm-of-match-arp-op-grouping;
411 case arp-spa-case-value {
412 uses ofj-nxm-of-match-arp-spa-grouping;
414 case arp-tpa-case-value {
415 uses ofj-nxm-of-match-arp-tpa-grouping;
417 case tun-ipv4-dst-case-value {
418 uses ofj-nxm-nx-match-tun-ipv4-dst-grouping;
420 case tun-ipv4-src-case-value {
421 uses ofj-nxm-nx-match-tun-ipv4-src-grouping;
423 case eth-src-case-value {
424 uses ofj-nxm-of-match-eth-src-grouping;
426 case eth-dst-case-value {
427 uses ofj-nxm-of-match-eth-dst-grouping;
429 case encap-eth-type-case-value {
430 uses ofj-nxm-nx-match-encap-eth-type-grouping;
432 case encap-eth-src-case-value {
433 uses ofj-nxm-nx-match-encap-eth-src-grouping;
435 case encap-eth-dst-case-value {
436 uses ofj-nxm-nx-match-encap-eth-dst-grouping;
438 case nsh-mdtype-case-value {
439 uses ofj-nxm-nx-match-nsh-mdtype-grouping;
441 case nsh-np-case-value {
442 uses ofj-nxm-nx-match-nsh-np-grouping;
444 case tun-gpe-np-case-value {
445 uses ofj-nxm-nx-match-tun-gpe-np-grouping;
448 case eth-type-case-value {
449 uses ofj-nxm-of-match-eth-type-grouping;
451 case nsp-case-value {
452 uses ofj-nxm-nx-match-nsp-grouping;
454 case nsi-case-value {
455 uses ofj-nxm-nx-match-nsi-grouping;
457 case nshc-1-case-value {
458 uses ofj-nxm-nx-match-nshc-1-grouping;
460 case nshc-2-case-value {
461 uses ofj-nxm-nx-match-nshc-2-grouping;
463 case nshc-3-case-value {
464 uses ofj-nxm-nx-match-nshc-3-grouping;
466 case nshc-4-case-value {
467 uses ofj-nxm-nx-match-nshc-4-grouping;
469 case tcp-src-case-value {
470 uses ofj-nxm-of-match-tcp-src-grouping;
472 case tcp-dst-case-value {
473 uses ofj-nxm-of-match-tcp-dst-grouping;
475 case udp-src-case-value {
476 uses ofj-nxm-of-match-udp-src-grouping;
478 case udp-dst-case-value {
479 uses ofj-nxm-of-match-udp-dst-grouping;
481 case ct-state-case-value {
482 uses ofj-nxm-nx-match-ct-state-grouping;
484 case ct-zone-case-value {
485 uses ofj-nxm-nx-match-ct-zone-grouping;
487 case ip-dst-case-value {
488 uses ofj-nxm-of-match-ip-dst-grouping;
490 case ip-src-case-value {
491 uses ofj-nxm-of-match-ip-src-grouping;
493 case icmp-type-case-value {
494 uses ofj-nxm-of-match-icmp-type-grouping;