4 namespace "urn:ietf:params:xml:ns:yang:packet-fields";
8 import ietf-inet-types {
12 import ietf-yang-types {
17 description "Initial version of packet fields used by access-lists";
20 grouping acl-transport-header-fields {
21 description "Transport header fields";
23 container source-port-range {
24 description "inclusive range of source ports";
27 type inet:port-number;
30 type inet:port-number;
34 container destination-port-range {
35 description "inclusive range of destination ports";
38 type inet:port-number;
41 type inet:port-number;
46 grouping acl-ip-header-fields {
47 description "Header fields common to ipv4 and ipv6";
49 uses acl-transport-header-fields;
61 grouping acl-ipv4-header-fields {
62 description "fields in IPv4 header";
64 leaf destination-ipv4-address {
65 type inet:ipv4-prefix;
68 leaf source-ipv4-address {
69 type inet:ipv4-prefix;
74 grouping acl-ipv6-header-fields {
75 description "fields in IPv6 header";
77 leaf destination-ipv6-address {
78 type inet:ipv6-prefix;
81 leaf source-ipv6-address {
82 type inet:ipv6-prefix;
86 type inet:ipv6-flow-label;
91 grouping acl-eth-header-fields {
92 description "fields in ethernet header";
94 leaf destination-mac-address {
95 type yang:mac-address;
98 leaf destination-mac-address-mask {
99 type yang:mac-address;
102 leaf source-mac-address {
103 type yang:mac-address;
106 leaf source-mac-address-mask {
107 type yang:mac-address;
112 description "Define time range entries to restrict
113 the access. The time range is identified by a name
114 and then referenced by a function, so that those
115 time restrictions are imposed on the function itself.";
119 "Absolute time and date that
120 the associated function starts
124 type yang:date-and-time;
126 "Start time and date";
129 type yang:date-and-time;
130 description "Absolute end time and date";
136 "Specify the associated function
137 active or inactive state when
138 starts going into effect";
140 } // container absolute
141 } //grouping timerange
144 description "Fields associated with a packet but not in the header";
146 leaf input-interface {
147 description "Packet was received on this interface";