1 module opendaylight-ipv6-arbitrary-bitmask-fields {
2 namespace "urn:opendaylight:opendaylight-ipv6-arbitrary-bitmask-fields";
3 prefix "ipv6-arbitrary-bitmask";
5 import ietf-inet-types {prefix inet; revision-date "2013-07-15";}
9 description "Initial revision";
12 typedef ipv6-arbitrary-mask {
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}|:))';
27 grouping "ipv6-match-arbitrary-bitmask-fields" {
29 leaf ipv6-source-address-no-mask {
30 description "IPv6 source address with no mask.";
31 type inet:ipv6-address;
34 leaf ipv6-source-arbitrary-bitmask {
35 description "Arbitrary bit mask of IPv6 source address.";
36 type ipv6-arbitrary-mask;
39 leaf ipv6-destination-address-no-mask {
40 description "IPv6 destination address with no mask.";
41 type inet:ipv6-address;
44 leaf ipv6-destination-arbitrary-bitmask {
45 description "Arbitrary bit mask of IPv6 destination address.";
46 type ipv6-arbitrary-mask;