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;
127 grouping ofj-nxm-nx-match-reg-grouping {
128 container reg-values {
134 grouping ofj-nxm-nx-match-tun-id-grouping {
135 container tun-id-values {
141 grouping ofj-nxm-nx-match-arp-sha-grouping {
142 container arp-sha-values {
144 type yang:mac-address;
148 grouping ofj-nxm-nx-match-arp-tha-grouping {
149 container arp-tha-values {
151 type yang:mac-address;
155 grouping ofj-nxm-of-match-arp-op-grouping {
156 container arp-op-values {
162 grouping ofj-nxm-of-match-arp-spa-grouping {
163 container arp-spa-values {
169 grouping ofj-nxm-of-match-arp-tpa-grouping {
170 container arp-tpa-values {
176 grouping ofj-nxm-nx-match-tun-ipv4-dst-grouping {
177 container tun-ipv4-dst-values {
183 grouping ofj-nxm-nx-match-tun-ipv4-src-grouping {
184 container tun-ipv4-src-values {
190 grouping ofj-nxm-of-match-eth-src-grouping {
191 container eth-src-values {
193 type yang:mac-address;
197 grouping ofj-nxm-of-match-eth-dst-grouping {
198 container eth-dst-values {
200 type yang:mac-address;
204 grouping ofj-nxm-of-match-eth-type-grouping {
205 container eth-type-values {
212 grouping ofj-nxm-nx-match-nsp-grouping {
213 container nsp-values {
220 grouping ofj-nxm-nx-match-nsi-grouping {
221 container nsi-values {
228 grouping ofj-nxm-nx-match-nshc-grouping {
234 grouping ofj-nxm-nx-match-nshc-1-grouping {
235 container nshc-1-values {
236 uses ofj-nxm-nx-match-nshc-grouping;
239 grouping ofj-nxm-nx-match-nshc-2-grouping {
240 container nshc-2-values {
241 uses ofj-nxm-nx-match-nshc-grouping;
244 grouping ofj-nxm-nx-match-nshc-3-grouping {
245 container nshc-3-values {
246 uses ofj-nxm-nx-match-nshc-grouping;
249 grouping ofj-nxm-nx-match-nshc-4-grouping {
250 container nshc-4-values {
251 uses ofj-nxm-nx-match-nshc-grouping;
254 grouping ofj-nxm-of-match-tcp-src-grouping {
255 container tcp-src-values {
257 type inet:port-number;
264 grouping ofj-nxm-of-match-tcp-dst-grouping {
265 container tcp-dst-values {
267 type inet:port-number;
274 grouping ofj-nxm-of-match-udp-src-grouping {
275 container udp-src-values {
277 type inet:port-number;
284 grouping ofj-nxm-of-match-udp-dst-grouping {
285 container udp-dst-values {
287 type inet:port-number;
294 grouping ofj-nxm-nx-match-ct-state-grouping{
295 container ct-state-values {
304 grouping ofj-nxm-nx-match-ct-zone-grouping{
305 container ct-zone-values {
311 grouping ofj-nxm-of-match-ip-dst-grouping {
312 container ip-dst-values {
318 grouping ofj-nxm-of-match-ip-src-grouping {
319 container ip-src-values {
325 grouping ofj-nxm-of-match-icmp-type-grouping {
326 container icmp-type-values {
333 augment "/ofoxm:oxm-container/ofoxm:match-entry-value" {
334 ext:augment-identifier "ofj-aug-nx-match";
335 case reg-case-value {
336 uses ofj-nxm-nx-match-reg-grouping;
338 case tun-id-case-value {
339 uses ofj-nxm-nx-match-tun-id-grouping;
341 case arp-sha-case-value {
342 uses ofj-nxm-nx-match-arp-sha-grouping;
344 case arp-tha-case-value {
345 uses ofj-nxm-nx-match-arp-tha-grouping;
347 case arp-op-case-value {
348 uses ofj-nxm-of-match-arp-op-grouping;
350 case arp-spa-case-value {
351 uses ofj-nxm-of-match-arp-spa-grouping;
353 case arp-tpa-case-value {
354 uses ofj-nxm-of-match-arp-tpa-grouping;
356 case tun-ipv4-dst-case-value {
357 uses ofj-nxm-nx-match-tun-ipv4-dst-grouping;
359 case tun-ipv4-src-case-value {
360 uses ofj-nxm-nx-match-tun-ipv4-src-grouping;
362 case eth-src-case-value {
363 uses ofj-nxm-of-match-eth-src-grouping;
365 case eth-dst-case-value {
366 uses ofj-nxm-of-match-eth-dst-grouping;
369 case eth-type-case-value {
370 uses ofj-nxm-of-match-eth-type-grouping;
372 case nsp-case-value {
373 uses ofj-nxm-nx-match-nsp-grouping;
375 case nsi-case-value {
376 uses ofj-nxm-nx-match-nsi-grouping;
378 case nshc-1-case-value {
379 uses ofj-nxm-nx-match-nshc-1-grouping;
381 case nshc-2-case-value {
382 uses ofj-nxm-nx-match-nshc-2-grouping;
384 case nshc-3-case-value {
385 uses ofj-nxm-nx-match-nshc-3-grouping;
387 case nshc-4-case-value {
388 uses ofj-nxm-nx-match-nshc-4-grouping;
390 case tcp-src-case-value {
391 uses ofj-nxm-of-match-tcp-src-grouping;
393 case tcp-dst-case-value {
394 uses ofj-nxm-of-match-tcp-dst-grouping;
396 case udp-src-case-value {
397 uses ofj-nxm-of-match-udp-src-grouping;
399 case udp-dst-case-value {
400 uses ofj-nxm-of-match-udp-dst-grouping;
402 case ct-state-case-value {
403 uses ofj-nxm-nx-match-ct-state-grouping;
405 case ct-zone-case-value {
406 uses ofj-nxm-nx-match-ct-zone-grouping;
408 case ip-dst-case-value {
409 uses ofj-nxm-of-match-ip-dst-grouping;
411 case ip-src-case-value {
412 uses ofj-nxm-of-match-ip-src-grouping;
414 case icmp-type-case-value {
415 uses ofj-nxm-of-match-icmp-type-grouping;