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-of-in-port {
67 base ofoxm:match-field;
69 identity nxm-nx-tun-ipv4-dst {
70 base ofoxm:match-field;
72 identity nxm-nx-tun-ipv4-src {
73 base ofoxm:match-field;
75 identity nxm-of-eth-src {
76 base ofoxm:match-field;
78 identity nxm-of-eth-dst {
79 base ofoxm:match-field;
81 identity nxm-of-eth-type {
82 base ofoxm:match-field;
85 base ofoxm:match-field;
88 base ofoxm:match-field;
90 identity nxm-nx-nshc-1 {
91 base ofoxm:match-field;
93 identity nxm-nx-nshc-2 {
94 base ofoxm:match-field;
96 identity nxm-nx-nshc-3 {
97 base ofoxm:match-field;
99 identity nxm-nx-nshc-4 {
100 base ofoxm:match-field;
102 identity nxm-of-tcp-src {
103 base ofoxm:match-field;
105 identity nxm-of-tcp-dst {
106 base ofoxm:match-field;
108 identity nxm-of-udp-src {
109 base ofoxm:match-field;
111 identity nxm-of-udp-dst {
112 base ofoxm:match-field;
114 identity nxm-nx-ct-state {
115 base ofoxm:match-field;
117 identity nxm-nx-ct-zone {
118 base ofoxm:match-field;
120 identity nxm-of-ip-dst {
121 base ofoxm:match-field;
123 identity nxm-of-ip-src {
124 base ofoxm:match-field;
126 identity nxm-of-icmp-type {
127 base ofoxm:match-field;
129 identity nxm-nx-encap-eth-type {
130 base ofoxm:match-field;
132 identity nxm-nx-encap-eth-src {
133 base ofoxm:match-field;
135 identity nxm-nx-encap-eth-dst {
136 base ofoxm:match-field;
138 identity nxm-nx-nsh-mdtype {
139 base ofoxm:match-field;
141 identity nxm-nx-nsh-np {
142 base ofoxm:match-field;
144 identity nxm-nx-tun-gpe-np {
145 base ofoxm:match-field;
147 identity nxm-of-mpls-label {
148 base ofoxm:match-field;
152 grouping ofj-nxm-nx-match-reg-grouping {
153 container reg-values {
159 grouping ofj-oxm-of-mpls-label-grouping {
160 container mpls-label-values {
167 grouping ofj-nxm-nx-match-tun-id-grouping {
168 container tun-id-values {
174 grouping ofj-nxm-nx-match-arp-sha-grouping {
175 container arp-sha-values {
177 type yang:mac-address;
181 grouping ofj-nxm-nx-match-arp-tha-grouping {
182 container arp-tha-values {
184 type yang:mac-address;
188 grouping ofj-nxm-of-match-arp-op-grouping {
189 container arp-op-values {
195 grouping ofj-nxm-of-match-arp-spa-grouping {
196 container arp-spa-values {
202 grouping ofj-nxm-of-match-arp-tpa-grouping {
203 container arp-tpa-values {
209 grouping ofj-nxm-of-in-port-type-grouping {
210 container nxm-of-in-port-values {
216 grouping ofj-nxm-nx-match-tun-ipv4-dst-grouping {
217 container tun-ipv4-dst-values {
223 grouping ofj-nxm-nx-match-tun-ipv4-src-grouping {
224 container tun-ipv4-src-values {
230 grouping ofj-nxm-of-match-eth-src-grouping {
231 container eth-src-values {
233 type yang:mac-address;
237 grouping ofj-nxm-of-match-eth-dst-grouping {
238 container eth-dst-values {
240 type yang:mac-address;
244 grouping ofj-nxm-of-match-eth-type-grouping {
245 container eth-type-values {
252 grouping ofj-nxm-nx-match-nsp-grouping {
253 container nsp-values {
260 grouping ofj-nxm-nx-match-nsi-grouping {
261 container nsi-values {
268 grouping ofj-nxm-nx-match-nshc-grouping {
274 grouping ofj-nxm-nx-match-nshc-1-grouping {
275 container nshc-1-values {
276 uses ofj-nxm-nx-match-nshc-grouping;
279 grouping ofj-nxm-nx-match-nshc-2-grouping {
280 container nshc-2-values {
281 uses ofj-nxm-nx-match-nshc-grouping;
284 grouping ofj-nxm-nx-match-nshc-3-grouping {
285 container nshc-3-values {
286 uses ofj-nxm-nx-match-nshc-grouping;
289 grouping ofj-nxm-nx-match-nshc-4-grouping {
290 container nshc-4-values {
291 uses ofj-nxm-nx-match-nshc-grouping;
294 grouping ofj-nxm-of-match-tcp-src-grouping {
295 container tcp-src-values {
297 type inet:port-number;
304 grouping ofj-nxm-of-match-tcp-dst-grouping {
305 container tcp-dst-values {
307 type inet:port-number;
314 grouping ofj-nxm-of-match-udp-src-grouping {
315 container udp-src-values {
317 type inet:port-number;
324 grouping ofj-nxm-of-match-udp-dst-grouping {
325 container udp-dst-values {
327 type inet:port-number;
334 grouping ofj-nxm-nx-match-ct-state-grouping{
335 container ct-state-values {
344 grouping ofj-nxm-nx-match-ct-zone-grouping{
345 container ct-zone-values {
351 grouping ofj-nxm-of-match-ip-dst-grouping {
352 container ip-dst-values {
358 grouping ofj-nxm-of-match-ip-src-grouping {
359 container ip-src-values {
365 grouping ofj-nxm-of-match-icmp-type-grouping {
366 container icmp-type-values {
372 grouping ofj-nxm-nx-match-encap-eth-type-grouping {
373 container encap-eth-type-values {
374 leaf encap-eth-type {
379 grouping ofj-nxm-nx-match-encap-eth-src-grouping {
380 container encap-eth-src-values {
382 type yang:mac-address;
386 grouping ofj-nxm-nx-match-encap-eth-dst-grouping {
387 container encap-eth-dst-values {
389 type yang:mac-address;
393 grouping ofj-nxm-nx-match-nsh-mdtype-grouping {
394 container nsh-mdtype-values {
400 grouping ofj-nxm-nx-match-nsh-np-grouping {
401 container nsh-np-values {
407 grouping ofj-nxm-nx-match-tun-gpe-np-grouping {
408 container tun-gpe-np-values {
415 augment "/ofoxm:oxm-container/ofoxm:match-entry-value" {
416 ext:augment-identifier "ofj-aug-nx-match";
417 case reg-case-value {
418 uses ofj-nxm-nx-match-reg-grouping;
420 case tun-id-case-value {
421 uses ofj-nxm-nx-match-tun-id-grouping;
423 case arp-sha-case-value {
424 uses ofj-nxm-nx-match-arp-sha-grouping;
426 case arp-tha-case-value {
427 uses ofj-nxm-nx-match-arp-tha-grouping;
429 case arp-op-case-value {
430 uses ofj-nxm-of-match-arp-op-grouping;
432 case arp-spa-case-value {
433 uses ofj-nxm-of-match-arp-spa-grouping;
435 case arp-tpa-case-value {
436 uses ofj-nxm-of-match-arp-tpa-grouping;
438 case of-in-port-case-value {
439 uses ofj-nxm-of-in-port-type-grouping;
441 case tun-ipv4-dst-case-value {
442 uses ofj-nxm-nx-match-tun-ipv4-dst-grouping;
444 case tun-ipv4-src-case-value {
445 uses ofj-nxm-nx-match-tun-ipv4-src-grouping;
447 case eth-src-case-value {
448 uses ofj-nxm-of-match-eth-src-grouping;
450 case of-mpls-label-case-value {
451 uses ofj-oxm-of-mpls-label-grouping;
453 case eth-dst-case-value {
454 uses ofj-nxm-of-match-eth-dst-grouping;
456 case encap-eth-type-case-value {
457 uses ofj-nxm-nx-match-encap-eth-type-grouping;
459 case encap-eth-src-case-value {
460 uses ofj-nxm-nx-match-encap-eth-src-grouping;
462 case encap-eth-dst-case-value {
463 uses ofj-nxm-nx-match-encap-eth-dst-grouping;
465 case nsh-mdtype-case-value {
466 uses ofj-nxm-nx-match-nsh-mdtype-grouping;
468 case nsh-np-case-value {
469 uses ofj-nxm-nx-match-nsh-np-grouping;
471 case tun-gpe-np-case-value {
472 uses ofj-nxm-nx-match-tun-gpe-np-grouping;
475 case eth-type-case-value {
476 uses ofj-nxm-of-match-eth-type-grouping;
478 case nsp-case-value {
479 uses ofj-nxm-nx-match-nsp-grouping;
481 case nsi-case-value {
482 uses ofj-nxm-nx-match-nsi-grouping;
484 case nshc-1-case-value {
485 uses ofj-nxm-nx-match-nshc-1-grouping;
487 case nshc-2-case-value {
488 uses ofj-nxm-nx-match-nshc-2-grouping;
490 case nshc-3-case-value {
491 uses ofj-nxm-nx-match-nshc-3-grouping;
493 case nshc-4-case-value {
494 uses ofj-nxm-nx-match-nshc-4-grouping;
496 case tcp-src-case-value {
497 uses ofj-nxm-of-match-tcp-src-grouping;
499 case tcp-dst-case-value {
500 uses ofj-nxm-of-match-tcp-dst-grouping;
502 case udp-src-case-value {
503 uses ofj-nxm-of-match-udp-src-grouping;
505 case udp-dst-case-value {
506 uses ofj-nxm-of-match-udp-dst-grouping;
508 case ct-state-case-value {
509 uses ofj-nxm-nx-match-ct-state-grouping;
511 case ct-zone-case-value {
512 uses ofj-nxm-nx-match-ct-zone-grouping;
514 case ip-dst-case-value {
515 uses ofj-nxm-of-match-ip-dst-grouping;
517 case ip-src-case-value {
518 uses ofj-nxm-of-match-ip-src-grouping;
520 case icmp-type-case-value {
521 uses ofj-nxm-of-match-icmp-type-grouping;