d4afa880003d51ecc3b168ead51b3872833a6488
[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 ietf-inet-types {prefix inet;}
7     import ietf-yang-types {prefix yang;}
8
9     import openflow-types {prefix oft;}
10     import openflow-protocol {prefix ofproto;}
11     import openflow-action {prefix ofaction;}
12     import openflow-instruction {prefix ofinstruction;}
13     import openflow-extensible-match {prefix oxm;}
14     import openflow-augments {prefix aug;}
15
16     revision "2016-08-02" {
17         description "Openflow approved extensions definition";
18     }
19
20     //ONF Approved OpenFlow Extensions
21
22     // Extension 109 - TCP FLAGS
23     identity tcp_flags {
24         base oxm:match-field;
25         description "TCP flags from the TCP header";
26     }
27
28     augment "/oxm:oxm-container/oxm:match-entry-value/aug:experimenter-id-case" {
29         ext:augment-identifier "tcp-flags-container";
30         container tcp-flags {
31             leaf flags {
32                 type uint16;
33             }
34             leaf mask {
35                 type binary;
36             }
37         }
38     }
39
40 }