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 "2010-09-24";}
10 import yang-ext {prefix ext; revision-date "2013-07-09";}
11 import ietf-inet-types {prefix inet; revision-date "2010-09-24";}
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;
118 grouping ofj-nxm-nx-match-reg-grouping {
119 container reg-values {
125 grouping ofj-nxm-nx-match-tun-id-grouping {
126 container tun-id-values {
132 grouping ofj-nxm-nx-match-arp-sha-grouping {
133 container arp-sha-values {
135 type yang:mac-address;
139 grouping ofj-nxm-nx-match-arp-tha-grouping {
140 container arp-tha-values {
142 type yang:mac-address;
146 grouping ofj-nxm-of-match-arp-op-grouping {
147 container arp-op-values {
153 grouping ofj-nxm-of-match-arp-spa-grouping {
154 container arp-spa-values {
160 grouping ofj-nxm-of-match-arp-tpa-grouping {
161 container arp-tpa-values {
167 grouping ofj-nxm-nx-match-tun-ipv4-dst-grouping {
168 container tun-ipv4-dst-values {
174 grouping ofj-nxm-nx-match-tun-ipv4-src-grouping {
175 container tun-ipv4-src-values {
181 grouping ofj-nxm-of-match-eth-src-grouping {
182 container eth-src-values {
184 type yang:mac-address;
188 grouping ofj-nxm-of-match-eth-dst-grouping {
189 container eth-dst-values {
191 type yang:mac-address;
195 grouping ofj-nxm-of-match-eth-type-grouping {
196 container eth-type-values {
203 grouping ofj-nxm-nx-match-nsp-grouping {
204 container nsp-values {
211 grouping ofj-nxm-nx-match-nsi-grouping {
212 container nsi-values {
219 grouping ofj-nxm-nx-match-nshc-grouping {
225 grouping ofj-nxm-nx-match-nshc-1-grouping {
226 container nshc-1-values {
227 uses ofj-nxm-nx-match-nshc-grouping;
230 grouping ofj-nxm-nx-match-nshc-2-grouping {
231 container nshc-2-values {
232 uses ofj-nxm-nx-match-nshc-grouping;
235 grouping ofj-nxm-nx-match-nshc-3-grouping {
236 container nshc-3-values {
237 uses ofj-nxm-nx-match-nshc-grouping;
240 grouping ofj-nxm-nx-match-nshc-4-grouping {
241 container nshc-4-values {
242 uses ofj-nxm-nx-match-nshc-grouping;
245 grouping ofj-nxm-of-match-tcp-src-grouping {
246 container tcp-src-values {
248 type inet:port-number;
255 grouping ofj-nxm-of-match-tcp-dst-grouping {
256 container tcp-dst-values {
258 type inet:port-number;
265 grouping ofj-nxm-of-match-udp-src-grouping {
266 container udp-src-values {
268 type inet:port-number;
275 grouping ofj-nxm-of-match-udp-dst-grouping {
276 container udp-dst-values {
278 type inet:port-number;
285 grouping ofj-nxm-nx-match-ct-state-grouping{
286 container ct-state-values {
295 grouping ofj-nxm-nx-match-ct-zone-grouping{
296 container ct-zone-values {
302 augment "/ofoxm:oxm-container/ofoxm:match-entry-value" {
303 ext:augment-identifier "ofj-aug-nx-match";
304 case reg-case-value {
305 uses ofj-nxm-nx-match-reg-grouping;
307 case tun-id-case-value {
308 uses ofj-nxm-nx-match-tun-id-grouping;
310 case arp-sha-case-value {
311 uses ofj-nxm-nx-match-arp-sha-grouping;
313 case arp-tha-case-value {
314 uses ofj-nxm-nx-match-arp-tha-grouping;
316 case arp-op-case-value {
317 uses ofj-nxm-of-match-arp-op-grouping;
319 case arp-spa-case-value {
320 uses ofj-nxm-of-match-arp-spa-grouping;
322 case arp-tpa-case-value {
323 uses ofj-nxm-of-match-arp-tpa-grouping;
325 case tun-ipv4-dst-case-value {
326 uses ofj-nxm-nx-match-tun-ipv4-dst-grouping;
328 case tun-ipv4-src-case-value {
329 uses ofj-nxm-nx-match-tun-ipv4-src-grouping;
331 case eth-src-case-value {
332 uses ofj-nxm-of-match-eth-src-grouping;
334 case eth-dst-case-value {
335 uses ofj-nxm-of-match-eth-dst-grouping;
338 case eth-type-case-value {
339 uses ofj-nxm-of-match-eth-type-grouping;
341 case nsp-case-value {
342 uses ofj-nxm-nx-match-nsp-grouping;
344 case nsi-case-value {
345 uses ofj-nxm-nx-match-nsi-grouping;
347 case nshc-1-case-value {
348 uses ofj-nxm-nx-match-nshc-1-grouping;
350 case nshc-2-case-value {
351 uses ofj-nxm-nx-match-nshc-2-grouping;
353 case nshc-3-case-value {
354 uses ofj-nxm-nx-match-nshc-3-grouping;
356 case nshc-4-case-value {
357 uses ofj-nxm-nx-match-nshc-4-grouping;
359 case tcp-src-case-value {
360 uses ofj-nxm-of-match-tcp-src-grouping;
362 case tcp-dst-case-value {
363 uses ofj-nxm-of-match-tcp-dst-grouping;
365 case udp-src-case-value {
366 uses ofj-nxm-of-match-udp-src-grouping;
368 case udp-dst-case-value {
369 uses ofj-nxm-of-match-udp-dst-grouping;
371 case ct-state-case-value {
372 uses ofj-nxm-nx-match-ct-state-grouping;
374 case ct-zone-case-value {
375 uses ofj-nxm-nx-match-ct-zone-grouping;