Merge "Bug 6110: Fixed bugs in statistics manager due to race condition." into stable...
[openflowplugin.git] / model / model-flow-base / src / main / yang / opendaylight-ipv6-arbitrary-bitmask-fields.yang
1 module opendaylight-ipv6-arbitrary-bitmask-fields {
2     namespace "urn:opendaylight:opendaylight-ipv6-arbitrary-bitmask-fields";
3     prefix "ipv6-arbitrary-bitmask";
4
5     import ietf-inet-types {prefix inet; revision-date "2013-07-15";}
6
7
8     revision 2016-02-24 {
9         description "Initial revision";
10     }
11
12     typedef ipv6-arbitrary-mask {
13         type string {
14             pattern
15                 '(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|'
16               + '([0-9a-fA-F]{1,4}:){1,7}:|'
17               + '([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|'
18               + '([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|'
19               + '([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|'
20               + '([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|'
21               + '([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|'
22               + '[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|'
23               + ':((:[0-9a-fA-F]{1,4}){1,7}|:))';
24         }
25     }
26
27     grouping "ipv6-match-arbitrary-bitmask-fields" {
28
29         leaf ipv6-source-address-no-mask {
30             description "IPv6 source address with no mask.";
31             type inet:ipv6-address;
32         }
33
34         leaf ipv6-source-arbitrary-bitmask {
35             description "Arbitrary bit mask of IPv6 source address.";
36             type ipv6-arbitrary-mask;
37         }
38
39         leaf ipv6-destination-address-no-mask {
40             description "IPv6 destination address with no mask.";
41             type inet:ipv6-address;
42         }
43
44         leaf ipv6-destination-arbitrary-bitmask {
45             description "Arbitrary bit mask of IPv6 destination address.";
46             type ipv6-arbitrary-mask;
47         }
48     }
49
50 }