d33ecedecb1c1a5b863ef6a14050f30bdd875fd0
[smo/teiv.git] /
1 module ietf-yang-types {
2
3   namespace "urn:ietf:params:xml:ns:yang:ietf-yang-types";
4   prefix "yang";
5
6   organization
7    "IETF Network Modeling (NETMOD) Working Group";
8
9   contact
10    "WG Web:   <https://datatracker.ietf.org/wg/netmod/>
11     WG List:  <mailto:netmod@ietf.org>
12
13     Editor:   Juergen Schoenwaelder
14               <mailto:j.schoenwaelder@jacobs-university.de>";
15
16   description
17    "This module contains a collection of generally useful derived
18     YANG data types.
19
20     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
21     NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
22     'MAY', and 'OPTIONAL' in this document are to be interpreted as
23     described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
24     they appear in all capitals, as shown here.
25
26     Copyright (c) 2019 IETF Trust and the persons identified as
27     authors of the code.  All rights reserved.
28
29     Redistribution and use in source and binary forms, with or
30     without modification, is permitted pursuant to, and subject
31     to the license terms contained in, the Simplified BSD License
32     set forth in Section 4.c of the IETF Trust's Legal Provisions
33     Relating to IETF Documents
34     (http://trustee.ietf.org/license-info).
35
36     This version of this YANG module is part of RFC XXXX;
37     see the RFC itself for full legal notices.";
38
39   revision 2019-11-04 {
40     description
41      "This revision adds the following new data types:
42       - date, time
43       - hours32, minutes32, seconds32, centiseconds32, milliseconds32,
44       - microseconds32, microseconds64, nanoseconds32, nanoseconds64
45       - revision-identifier, node-instance-identifier";
46     reference
47      "RFC XXXX: Common YANG Data Types";
48   }
49
50   revision 2013-07-15 {
51     description
52      "This revision adds the following new data types:
53       - yang-identifier
54       - hex-string
55       - uuid
56       - dotted-quad";
57     reference
58      "RFC 6991: Common YANG Data Types";
59   }
60
61   revision 2010-09-24 {
62     description
63      "Initial revision.";
64     reference
65      "RFC 6021: Common YANG Data Types";
66   }
67
68   /*** collection of counter and gauge types ***/
69
70   typedef counter32 {
71     type uint32;
72     description
73      "The counter32 type represents a non-negative integer
74       that monotonically increases until it reaches a
75       maximum value of 2^32-1 (4294967295 decimal), when it
76       wraps around and starts increasing again from zero.
77
78       Counters have no defined 'initial' value, and thus, a
79       single value of a counter has (in general) no information
80       content.  Discontinuities in the monotonically increasing
81       value normally occur at re-initialization of the
82       management system, and at other times as specified in the
83       description of a schema node using this type.  If such
84       other times can occur, for example, the instantiation of
85       a schema node of type counter32 at times other than
86       re-initialization, then a corresponding schema node
87       should be defined, with an appropriate type, to indicate
88       the last discontinuity.
89       The counter32 type should not be used for configuration
90       schema nodes.  A default statement SHOULD NOT be used in
91       combination with the type counter32.
92
93       In the value set and its semantics, this type is equivalent
94       to the Counter32 type of the SMIv2.";
95     reference
96      "RFC 2578: Structure of Management Information Version 2
97                 (SMIv2)";
98   }
99
100   typedef zero-based-counter32 {
101     type yang:counter32;
102     default "0";
103     description
104      "The zero-based-counter32 type represents a counter32
105       that has the defined 'initial' value zero.
106
107       A schema node instance of this type will be set to zero (0)
108       on creation and will thereafter increase monotonically until
109       it reaches a maximum value of 2^32-1 (4294967295 decimal),
110       when it wraps around and starts increasing again from zero.
111
112       Provided that an application discovers a new schema node
113       instance of this type within the minimum time to wrap, it
114       can use the 'initial' value as a delta.  It is important for
115       a management station to be aware of this minimum time and the
116       actual time between polls, and to discard data if the actual
117       time is too long or there is no defined minimum time.
118
119       In the value set and its semantics, this type is equivalent
120       to the ZeroBasedCounter32 textual convention of the SMIv2.";
121     reference
122       "RFC 4502: Remote Network Monitoring Management Information
123                  Base Version 2";
124   }
125
126   typedef counter64 {
127     type uint64;
128     description
129      "The counter64 type represents a non-negative integer
130       that monotonically increases until it reaches a
131       maximum value of 2^64-1 (18446744073709551615 decimal),
132       when it wraps around and starts increasing again from zero.
133
134       Counters have no defined 'initial' value, and thus, a
135       single value of a counter has (in general) no information
136       content.  Discontinuities in the monotonically increasing
137       value normally occur at re-initialization of the
138       management system, and at other times as specified in the
139       description of a schema node using this type.  If such
140       other times can occur, for example, the instantiation of
141       a schema node of type counter64 at times other than
142       re-initialization, then a corresponding schema node
143       should be defined, with an appropriate type, to indicate
144       the last discontinuity.
145
146       The counter64 type should not be used for configuration
147       schema nodes.  A default statement SHOULD NOT be used in
148       combination with the type counter64.
149
150       In the value set and its semantics, this type is equivalent
151       to the Counter64 type of the SMIv2.";
152     reference
153      "RFC 2578: Structure of Management Information Version 2
154                 (SMIv2)";
155   }
156
157   typedef zero-based-counter64 {
158     type yang:counter64;
159     default "0";
160     description
161      "The zero-based-counter64 type represents a counter64 that
162       has the defined 'initial' value zero.
163
164       A schema node instance of this type will be set to zero (0)
165       on creation and will thereafter increase monotonically until
166       it reaches a maximum value of 2^64-1 (18446744073709551615
167       decimal), when it wraps around and starts increasing again
168       from zero.
169
170       Provided that an application discovers a new schema node
171       instance of this type within the minimum time to wrap, it
172       can use the 'initial' value as a delta.  It is important for
173       a management station to be aware of this minimum time and the
174       actual time between polls, and to discard data if the actual
175       time is too long or there is no defined minimum time.
176
177       In the value set and its semantics, this type is equivalent
178       to the ZeroBasedCounter64 textual convention of the SMIv2.";
179     reference
180      "RFC 2856: Textual Conventions for Additional High Capacity
181                 Data Types";
182   }
183
184   typedef gauge32 {
185     type uint32;
186     description
187      "The gauge32 type represents a non-negative integer, which
188       may increase or decrease, but shall never exceed a maximum
189       value, nor fall below a minimum value.  The maximum value
190       cannot be greater than 2^32-1 (4294967295 decimal), and
191       the minimum value cannot be smaller than 0.  The value of
192       a gauge32 has its maximum value whenever the information
193       being modeled is greater than or equal to its maximum
194       value, and has its minimum value whenever the information
195       being modeled is smaller than or equal to its minimum value.
196       If the information being modeled subsequently decreases
197       below (increases above) the maximum (minimum) value, the
198       gauge32 also decreases (increases).
199
200       In the value set and its semantics, this type is equivalent
201       to the Gauge32 type of the SMIv2.";
202     reference
203      "RFC 2578: Structure of Management Information Version 2
204                 (SMIv2)";
205   }
206
207   typedef gauge64 {
208     type uint64;
209     description
210      "The gauge64 type represents a non-negative integer, which
211       may increase or decrease, but shall never exceed a maximum
212       value, nor fall below a minimum value.  The maximum value
213       cannot be greater than 2^64-1 (18446744073709551615), and
214       the minimum value cannot be smaller than 0.  The value of
215       a gauge64 has its maximum value whenever the information
216       being modeled is greater than or equal to its maximum
217       value, and has its minimum value whenever the information
218       being modeled is smaller than or equal to its minimum value.
219       If the information being modeled subsequently decreases
220       below (increases above) the maximum (minimum) value, the
221       gauge64 also decreases (increases).
222
223       In the value set and its semantics, this type is equivalent
224       to the CounterBasedGauge64 SMIv2 textual convention defined
225       in RFC 2856";
226     reference
227      "RFC 2856: Textual Conventions for Additional High Capacity
228                 Data Types";
229   }
230
231   /*** collection of identifier-related types ***/
232
233   typedef object-identifier {
234     type string {
235       pattern '(([0-1](\.[1-3]?[0-9]))|(2\.(0|([1-9]\d*))))'
236             + '(\.(0|([1-9]\d*)))*';
237     }
238     description
239      "The object-identifier type represents administratively
240       assigned names in a registration-hierarchical-name tree.
241
242       Values of this type are denoted as a sequence of numerical
243       non-negative sub-identifier values.  Each sub-identifier
244       value MUST NOT exceed 2^32-1 (4294967295).  Sub-identifiers
245       are separated by single dots and without any intermediate
246       whitespace.
247
248       The ASN.1 standard restricts the value space of the first
249       sub-identifier to 0, 1, or 2.  Furthermore, the value space
250       of the second sub-identifier is restricted to the range
251       0 to 39 if the first sub-identifier is 0 or 1.  Finally,
252       the ASN.1 standard requires that an object identifier
253       has always at least two sub-identifiers.  The pattern
254       captures these restrictions.
255
256       Although the number of sub-identifiers is not limited,
257       module designers should realize that there may be
258       implementations that stick with the SMIv2 limit of 128
259       sub-identifiers.
260
261       This type is a superset of the SMIv2 OBJECT IDENTIFIER type
262       since it is not restricted to 128 sub-identifiers.  Hence,
263       this type SHOULD NOT be used to represent the SMIv2 OBJECT
264       IDENTIFIER type; the object-identifier-128 type SHOULD be
265       used instead.";
266     reference
267      "ISO9834-1: Information technology -- Open Systems
268       Interconnection -- Procedures for the operation of OSI
269       Registration Authorities: General procedures and top
270       arcs of the ASN.1 Object Identifier tree";
271   }
272
273   typedef object-identifier-128 {
274     type object-identifier {
275       pattern '\d*(\.\d*){1,127}';
276     }
277     description
278      "This type represents object-identifiers restricted to 128
279       sub-identifiers.
280
281       In the value set and its semantics, this type is equivalent
282       to the OBJECT IDENTIFIER type of the SMIv2.";
283     reference
284      "RFC 2578: Structure of Management Information Version 2
285                 (SMIv2)";
286   }
287
288   /*** collection of types related to date and time ***/
289
290   typedef date-and-time {
291     type string {
292       pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?'
293             + '(Z|[\+\-]\d{2}:\d{2})';
294     }
295     description
296      "The date-and-time type is a profile of the ISO 8601
297       standard for representation of dates and times using the
298       Gregorian calendar.  The profile is defined by the
299       date-time production in Section 5.6 of RFC 3339.
300
301       The date-and-time type is compatible with the dateTime XML
302       schema type with the following notable exceptions:
303
304       (a) The date-and-time type does not allow negative years.
305
306       (b) The date-and-time time-offset -00:00 indicates an unknown
307           time zone (see RFC 3339) while -00:00 and +00:00 and Z
308           all represent the same time zone in dateTime.
309
310       (c) The canonical format (see below) of date-and-time values
311           differs from the canonical format used by the dateTime XML
312           schema type, which requires all times to be in UTC using
313           the time-offset 'Z'.
314
315       This type is not equivalent to the DateAndTime textual
316       convention of the SMIv2 since RFC 3339 uses a different
317       separator between full-date and full-time and provides
318       higher resolution of time-secfrac.
319
320       The canonical format for date-and-time values with a known time
321       zone uses a numeric time zone offset that is calculated using
322       the device's configured known offset to UTC time.  A change of
323       the device's offset to UTC time will cause date-and-time values
324       to change accordingly.  Such changes might happen periodically
325       in case a server follows automatically daylight saving time
326       (DST) time zone offset changes.  The canonical format for
327       date-and-time values with an unknown time zone (usually
328       referring to the notion of local time) uses the time-offset
329       -00:00.";
330     reference
331      "RFC 3339: Date and Time on the Internet: Timestamps
332       RFC 2579: Textual Conventions for SMIv2
333       XSD-TYPES: XML Schema Part 2: Datatypes Second Edition";
334   }
335
336   typedef date {
337     type string {
338       pattern '\d{4}-\d{2}-\d{2}'
339             + '(Z|[\+\-]\d{2}:\d{2})';
340     }
341     description
342      "The date type represents a time-interval of the length
343       of a day, i.e., 24 hours.
344
345       The date type is compatible with the date XML schema
346       type with the following notable exceptions:
347
348       (a) The date type does not allow negative years.
349
350       (b) The date time-offset -00:00 indicates an unknown
351           time zone (see RFC 3339) while -00:00 and +00:00 and Z
352           all represent the same time zone in date.
353
354       (c) The canonical format (see below) of data values
355           differs from the canonical format used by the date XML
356           schema type, which requires all times to be in UTC using
357           the time-offset 'Z'.
358
359       The canonical format for date values with a known time
360       zone uses a numeric time zone offset that is calculated using
361       the device's configured known offset to UTC time.  A change of
362       the device's offset to UTC time will cause date values
363       to change accordingly.  Such changes might happen periodically
364       in case a server follows automatically daylight saving time
365       (DST) time zone offset changes.  The canonical format for
366       date values with an unknown time zone (usually referring
367       to the notion of local time) uses the time-offset -00:00.";
368     reference
369      "RFC 3339: Date and Time on the Internet: Timestamps
370       XSD-TYPES: XML Schema Part 2: Datatypes Second Edition";
371   }
372
373   /*
374    * DISCUSS:
375    * - XML schema seems to use a different canonical format, we
376    *   need to take a closer look how to define the canonical format
377    *   given that a data really identifies a 24 hour interval and
378    *   what XSD means with 'interval midpoint'.
379    */
380
381   typedef time {
382     type string {
383       pattern '\d{2}:\d{2}:\d{2}(\.\d+)?'
384             + '(Z|[\+\-]\d{2}:\d{2})';
385     }
386     description
387      "The time type represents an instance of time of zero-duration
388       that recurs every day.
389
390       The time type is compatible with the time XML schema
391       type with the following notable exceptions:
392
393       (a) The time time-offset -00:00 indicates an unknown
394           time zone (see RFC 3339) while -00:00 and +00:00 and Z
395           all represent the same time zone in time.
396
397       (c) The canonical format (see below) of time values
398           differs from the canonical format used by the time XML
399           schema type, which requires all times to be in UTC using
400           the time-offset 'Z'.
401
402       The canonical format for time values with a known time
403       zone uses a numeric time zone offset that is calculated using
404       the device's configured known offset to UTC time.  A change of
405       the device's offset to UTC time will cause time values
406       to change accordingly.  Such changes might happen periodically
407       in case a server follows automatically daylight saving time
408       (DST) time zone offset changes.  The canonical format for
409       time values with an unknown time zone (usually referring
410       to the notion of local time) uses the time-offset -00:00.";
411     reference
412      "RFC 3339: Date and Time on the Internet: Timestamps
413       XSD-TYPES: XML Schema Part 2: Datatypes Second Edition";
414   }
415
416   typedef hours32 {
417     type int32;
418     units "hours";
419     description
420         "A period of time, measured in units of hours.
421
422          The maximum time period that can be expressed is in the
423          range [89478485 days 08:00:00 to 89478485 days 07:00:00].
424
425          This type should be range restricted in situations
426          where only non-negative time periods are desirable,
427          (i.e., range '0..max').";
428   }
429
430   typedef minutes32 {
431     type int32;
432     units "minutes";
433     description
434         "A period of time, measured in units of minutes.
435
436          The maximum time period that can be expressed is in the
437          range [-1491308 days 2:08:00 to 1491308 days 2:07:00].
438
439          This type should be range restricted in situations
440          where only non-negative time periods are desirable,
441          (i.e., range '0..max').";
442   }
443
444   typedef seconds32 {
445     type int32;
446     units "seconds";
447     description
448         "A period of time, measured in units of seconds.
449
450          The maximum time period that can be expressed is in the
451          range [-24855 days 03:14:08 to 24855 days 03:14:07].
452
453          This type should be range restricted in situations
454          where only non-negative time periods are desirable,
455          (i.e., range '0..max').";
456   }
457
458   typedef centiseconds32 {
459     type int32;
460     units "centiseconds";
461     description
462         "A period of time, measured in units of 10^-2 seconds.
463
464          The maximum time period that can be expressed is in the
465          range [-248 days 13:13:56 to 248 days 13:13:56].
466
467          This type should be range restricted in situations
468          where only non-negative time periods are desirable,
469          (i.e., range '0..max').";
470   }
471
472   typedef milliseconds32 {
473     type int32;
474     units "milliseconds";
475     description
476         "A period of time, measured in units of 10^-3 seconds.
477
478          The maximum time period that can be expressed is in the
479          range [-24 days 20:31:23 to 24 days 20:31:23].
480
481          This type should be range restricted in situations
482          where only non-negative time periods are desirable,
483          (i.e., range '0..max').";
484   }
485
486   typedef microseconds32 {
487     type int32;
488     units "microseconds";
489     description
490         "A period of time, measured in units of 10^-6 seconds.
491
492          The maximum time period that can be expressed is in the
493          range [-00:35:47 to 00:35:47].
494
495          This type should be range restricted in situations
496          where only non-negative time periods are desirable,
497          (i.e., range '0..max').";
498   }
499
500   typedef microseconds64 {
501     type int64;
502     units "microseconds";
503     description
504         "A period of time, measured in units of 10^-6 seconds.
505
506          The maximum time period that can be expressed is in the
507          range [-106751991 days 04:00:54 to 106751991 days 04:00:54].
508
509          This type should be range restricted in situations
510          where only non-negative time periods are desirable,
511          (i.e., range '0..max').";
512   }
513
514   typedef nanoseconds32 {
515     type int32;
516     units "nanoseconds";
517     description
518         "A period of time, measured in units of 10^-9 seconds.
519
520          The maximum time period that can be expressed is in the
521          range [-00:00:02 to 00:00:02].
522
523          This type should be range restricted in situations
524          where only non-negative time periods are desirable,
525          (i.e., range '0..max').";
526   }
527
528   typedef nanoseconds64 {
529     type int64;
530     units "nanoseconds";
531     description
532         "A period of time, measured in units of 10^-9 seconds.
533
534          The maximum time period that can be expressed is in the
535          range [-106753 days 23:12:44 to 106752 days 0:47:16].
536
537          This type should be range restricted in situations
538          where only non-negative time periods are desirable,
539          (i.e., range '0..max').";
540   }
541
542   typedef timeticks {
543     type uint32;
544     description
545      "The timeticks type represents a non-negative integer that
546       represents the time, modulo 2^32 (4294967296 decimal), in
547       hundredths of a second between two epochs.  When a schema
548       node is defined that uses this type, the description of
549       the schema node identifies both of the reference epochs.
550
551       In the value set and its semantics, this type is equivalent
552       to the TimeTicks type of the SMIv2.";
553     reference
554      "RFC 2578: Structure of Management Information Version 2
555                 (SMIv2)";
556   }
557
558   typedef timestamp {
559     type yang:timeticks;
560     description
561      "The timestamp type represents the value of an associated
562       timeticks schema node instance at which a specific occurrence
563       happened.  The specific occurrence must be defined in the
564       description of any schema node defined using this type.  When
565       the specific occurrence occurred prior to the last time the
566       associated timeticks schema node instance was zero, then the
567       timestamp value is zero.
568
569       Note that this requires all timestamp values to be reset to
570       zero when the value of the associated timeticks schema node
571       instance reaches 497+ days and wraps around to zero.
572
573       The associated timeticks schema node must be specified
574       in the description of any schema node using this type.
575
576       In the value set and its semantics, this type is equivalent
577       to the TimeStamp textual convention of the SMIv2.";
578     reference
579      "RFC 2579: Textual Conventions for SMIv2";
580   }
581
582   /*** collection of generic address types ***/
583
584   typedef phys-address {
585     type string {
586       pattern '([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?';
587     }
588     description
589      "Represents media- or physical-level addresses represented
590       as a sequence octets, each octet represented by two hexadecimal
591       numbers.  Octets are separated by colons.  The canonical
592       representation uses lowercase characters.
593
594       In the value set and its semantics, this type is equivalent
595       to the PhysAddress textual convention of the SMIv2.";
596     reference
597      "RFC 2579: Textual Conventions for SMIv2";
598   }
599
600   typedef mac-address {
601     type string {
602       pattern '[0-9a-fA-F]{2}(:[0-9a-fA-F]{2}){5}';
603     }
604     description
605      "The mac-address type represents an IEEE 802 MAC address.
606       The canonical representation uses lowercase characters.
607
608       In the value set and its semantics, this type is equivalent
609       to the MacAddress textual convention of the SMIv2.";
610     reference
611      "IEEE 802: IEEE Standard for Local and Metropolitan Area
612                 Networks: Overview and Architecture
613       RFC 2579: Textual Conventions for SMIv2";
614   }
615
616   /*** collection of XML-specific types ***/
617   typedef xpath1.0 {
618     type string;
619     description
620      "This type represents an XPATH 1.0 expression.
621
622       When a schema node is defined that uses this type, the
623       description of the schema node MUST specify the XPath
624       context in which the XPath expression is evaluated.";
625     reference
626      "XPATH: XML Path Language (XPath) Version 1.0";
627   }
628
629   /*
630    * DISCUSS:
631    * - How do we deal with xpath expressions in other encodings
632    *   such as JSON. Do we assume an xpath context populated with
633    *   module names such that module names can be used to qualify
634    *   path expressions. This may need discussion and/or a new
635    *   definition.
636    * - This interacts with the definition of node-instance-identifier.
637    */
638
639   /*** collection of string types ***/
640
641   typedef hex-string {
642     type string {
643       pattern '([0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*)?';
644     }
645     description
646      "A hexadecimal string with octets represented as hex digits
647       separated by colons.  The canonical representation uses
648       lowercase characters.";
649   }
650
651   typedef uuid {
652     type string {
653       pattern '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-'
654             + '[0-9a-fA-F]{4}-[0-9a-fA-F]{12}';
655     }
656     description
657      "A Universally Unique IDentifier in the string representation
658       defined in RFC 4122.  The canonical representation uses
659       lowercase characters.
660
661       The following is an example of a UUID in string representation:
662       f81d4fae-7dec-11d0-a765-00a0c91e6bf6
663       ";
664     reference
665      "RFC 4122: A Universally Unique IDentifier (UUID) URN
666                 Namespace";
667   }
668
669   typedef dotted-quad {
670     type string {
671       pattern
672         '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}'
673       + '([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';
674     }
675     description
676       "An unsigned 32-bit number expressed in the dotted-quad
677        notation, i.e., four octets written as decimal numbers
678        and separated with the '.' (full stop) character.";
679   }
680
681   /*** collection of YANG specific types ***/
682
683   typedef yang-identifier {
684     type string {
685       length "1..max";
686       pattern '[a-zA-Z_][a-zA-Z0-9\-_.]*';
687       pattern '.|..|[^xX].*|.[^mM].*|..[^lL].*';
688     }
689     description
690       "A YANG identifier string as defined by the 'identifier'
691        rule in Section 12 of RFC 6020. An identifier must
692        start with an alphabetic character or an underscore
693        followed by an arbitrary sequence of alphabetic or
694        numeric characters, underscores, hyphens, or dots.
695
696        A YANG identifier MUST NOT start with any possible
697        combination of the lowercase or uppercase character
698        sequence 'xml'.";
699     reference
700       "RFC 6020: YANG - A Data Modeling Language for the Network
701                  Configuration Protocol (NETCONF)";
702   }
703
704   typedef revision-identifier {
705     type date {
706       pattern '\d{4}-\d{2}-\d{2}';
707     }
708     description
709      "Represents a specific revision of a YANG module by means of
710       a date value without a time zone.";
711   }
712
713   typedef node-instance-identifier {
714     type xpath1.0;
715     description
716      "Path expression used to represent a data node, action,
717       or notification instance-identifier string.
718
719       A node-instance-identifier value is an unrestricted
720       YANG instance-identifier expression or the special
721       value '/', which refers to the entire accessible tree.
722
723       All the rules for instance-identifier apply, except that
724       predicates for keys are optional.  If a key predicate is
725       missing, then the node-instance-identifier represents all
726       possible server instances for that key.
727
728       This XML Path Language (XPath) expression is evaluated in the
729       following context:
730
731          o  The set of namespace declarations are those in scope on
732             the leaf element where this type is used.
733
734          o  The set of variable bindings contains one variable,
735             'USER', which contains the name of the user of the
736             current session.
737
738          o  The function library is the core function library, but
739             note that due to the syntax restrictions of an
740             instance-identifier, no functions are allowed.
741
742          o  The context node is the root node in the data tree.
743
744       The accessible tree includes actions and notifications tied
745       to data nodes.";
746   }
747
748   /*
749    * DISCUSS:
750    * - This is taken from RFC 8341 and the idea is that this definition
751    *   is useful without requiring a dependency on NACM
752    * - What does the second bullet actually do? Do we keep this?
753    * - This interacts with the definition of xpath1.0.
754    */
755
756   /* DISCUSS:
757    * - It was suggested to add types for longitude, latitude,
758    *   postal code, country-code. Do we go there or do we leave
759    *   these for other modules to define? It seems such definitions
760    *   should go into draft-ietf-netmod-geo-location.
761    */
762
763   /* DISCUSS:
764    * - It was suggested to add percentage types but they tend to differ
765    *   widely. However, percentages are also widely used.
766    */
767 }