29a20351103e65f96f8ff24d402bc68bd10f505d
[openflowjava.git] / openflow-protocol-api / src / main / yang / openflow-approved-extensions.yang
1 module openflow-approved-extensions {
2     namespace "urn:opendaylight:openflow:approved:extensions";
3     prefix "ofext";
4
5     import yang-ext {prefix ext;}
6     import openflow-extensible-match {prefix oxm;}
7     import openflow-augments {prefix aug;}
8
9     revision "2016-08-02" {
10         description "Openflow approved extensions definition";
11     }
12
13     //ONF Approved OpenFlow Extensions
14     // Extension 109 - TCP FLAGS
15     identity tcp_flags {
16         base oxm:match-field;
17         description "TCP flags from the TCP header";
18     }
19
20     augment "/oxm:oxm-container/oxm:match-entry-value/aug:experimenter-id-case" {
21         ext:augment-identifier "tcp-flags-container";
22         container tcp-flags {
23             leaf flags {
24                 type uint16;
25             }
26             leaf mask {
27                 type binary;
28             }
29         }
30     }
31
32 }