Skip to content

Commit 73dbaa4

Browse files
yc.o sync (#1657)
Co-authored-by: Joe Clarke <[email protected]>
1 parent 906679d commit 73dbaa4

39 files changed

+2856
-1494
lines changed
Lines changed: 27 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ module iana-display-hints {
66
import ietf-amm {
77
prefix amm;
88
}
9+
import ietf-amm-base {
10+
prefix amm-base;
11+
}
912

1013
organization
11-
"IANA" {
14+
"Internet Assigned Numbers Authority (IANA)" {
1215
amm:enum 2;
1316
}
1417
contact
@@ -21,17 +24,17 @@ module iana-display-hints {
2124
Tel: +1 310 301 5800
2225
<mailto:[email protected]>";
2326
description
24-
"This module defines intermediate and leaf IDENT objects usable as
25-
display-hint annotations derived from the base
26-
<ari://ietf/amm/IDENT/display-hint> object.
27+
"This module defines leaf IDENT objects usable as 'display-hint'
28+
semantic type annotations derived from the base
29+
<ari://ietf/amm-base/ident/display-hint> object.
2730
2831
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
2932
NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
3033
'MAY', and 'OPTIONAL' in this document are to be interpreted as
3134
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
3235
they appear in all capitals, as shown here.
3336
34-
Copyright (c) 2024 IETF Trust and the persons identified as
37+
Copyright (c) 2025 IETF Trust and the persons identified as
3538
authors of the code. All rights reserved.
3639
3740
Redistribution and use in source and binary forms, with or
@@ -41,13 +44,13 @@ module iana-display-hints {
4144
Relating to IETF Documents
4245
(https://trustee.ietf.org/license-info).
4346
44-
The initial version of this YANG module is part of RFC XXXX
47+
This version of this YANG module is part of RFC XXXX
4548
(https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself
4649
for full legal notices.";
4750
reference
4851
"https://www.iana.org/assignments/DTNMA-TBA";
4952

50-
revision 2025-01-31 {
53+
revision 2025-07-03 {
5154
description
5255
"Updated for latest ADM document.";
5356
reference
@@ -56,138 +59,90 @@ module iana-display-hints {
5659
amm:enum 0;
5760

5861
// Integer number hints
59-
amm:ident base-integer {
60-
amm:enum 1;
61-
description
62-
"Intermediate base IDENT of display hints for integer values.
63-
Hints derived from this object SHALL only apply to built-in types
64-
BYTE, INT, UINT, VAST, and UVAST.";
65-
amm:base "//ietf/amm/IDENT/display-hint";
66-
}
6762
amm:ident display-int-dec {
6863
amm:enum 2;
6964
description
7065
"Display integers as decimal (base 10).";
71-
amm:base "//ietf/amm/IDENT/base-integer";
66+
amm:base "//ietf/amm-base/ident/display-hint-integer";
7267
}
7368
amm:ident display-int-bin {
7469
amm:enum 3;
7570
description
7671
"Display integers as binary (base 2).";
77-
amm:base "//ietf/amm/IDENT/base-integer";
72+
amm:base "//ietf/amm-base/ident/display-hint-integer";
7873
}
7974
amm:ident display-int-hex {
8075
amm:enum 4;
8176
description
8277
"Display integers as hexadecimal (base 16).";
83-
amm:base "//ietf/amm/IDENT/base-integer";
78+
amm:base "//ietf/amm-base/ident/display-hint-integer";
8479
}
8580

8681
// Floating-point number hints
87-
amm:ident base-float {
88-
amm:enum 5;
89-
description
90-
"Intermediate base IDENT of display hints for floating point values.
91-
Hints derived from this object SHALL only apply to built-in types
92-
REAL32 and REAL64.";
93-
amm:base "//ietf/amm/IDENT/display-hint";
94-
}
9582
amm:ident display-float-dec {
9683
amm:enum 6;
9784
description
9885
"Display floating point values as decimal fraction.";
99-
amm:base "//ietf/amm/IDENT/base-float";
86+
amm:base "//ietf/amm-base/ident/display-hint-float";
10087
}
10188
amm:ident display-float-exp {
10289
amm:enum 7;
10390
description
10491
"Display floating point values as decimal exponential form.";
105-
amm:base "//ietf/amm/IDENT/base-float";
92+
amm:base "//ietf/amm-base/ident/display-hint-float";
10693
}
10794
amm:ident display-float-hex {
10895
amm:enum 8;
10996
description
110-
"Display floating point values as hexadecimal exponential form.";
111-
amm:base "//ietf/amm/IDENT/base-float";
97+
"Display floating point values as hexadecimal exponential
98+
form.";
99+
amm:base "//ietf/amm-base/ident/display-hint-float";
112100
}
113101

114102
// Byte-string hints
115-
amm:ident base-bstr {
116-
amm:enum 9;
117-
description
118-
"Intermediate base IDENT of display hints for byte string values.
119-
Hints derived from this object SHALL only apply to built-in type
120-
BYTESTR.";
121-
amm:base "//ietf/amm/IDENT/display-hint";
122-
}
123103
amm:ident display-bstr-text {
124104
amm:enum 10;
125105
description
126106
"Display byte string values as UTF-8 text where possible.
127107
The base16 encoding is used otherwise.";
128108
reference
129109
"draft-ietf-dtn-ari";
130-
amm:base "//ietf/amm/IDENT/base-bstr";
110+
amm:base "//ietf/amm-base/ident/display-hint-bstr";
131111
}
132112
amm:ident display-bstr-base16 {
133113
amm:enum 11;
134114
description
135115
"Display byte string values as base16-encoded.";
136116
reference
137117
"draft-ietf-dtn-ari";
138-
amm:base "//ietf/amm/IDENT/base-bstr";
118+
amm:base "//ietf/amm-base/ident/display-hint-bstr";
139119
}
140120
amm:ident display-bstr-base64 {
141121
amm:enum 12;
142122
description
143123
"Display byte string values as base64url-encoded.";
144124
reference
145125
"draft-ietf-dtn-ari";
146-
amm:base "//ietf/amm/IDENT/base-bstr";
147-
}
148-
amm:ident display-bstr-ipaddress {
149-
amm:enum 16;
150-
description
151-
"Interpret byte string values as either IPv4 address (4-octet length)
152-
or IPv6 address (16-octet length) and display as human-friendly text
153-
according to RFC 4001 conventions.";
154-
reference
155-
"RFC 4001: Textual Conventions for Internet Network Addresses";
156-
amm:base "//ietf/amm/IDENT/base-bstr";
157-
}
158-
amm:ident display-bstr-uuid {
159-
amm:enum 17;
160-
description
161-
"Interpret byte string values as UUID and display as human-friendly text
162-
according to RFC 4122 conventions.";
163-
reference
164-
"RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace";
165-
amm:base "//ietf/amm/IDENT/base-bstr";
126+
amm:base "//ietf/amm-base/ident/display-hint-bstr";
166127
}
167128

168129
// TIME type (TP or TD built-ins) hints
169-
amm:ident base-time {
170-
amm:enum 13;
171-
description
172-
"Intermediate base IDENT of display hints for time values.
173-
Hints derived from this object SHALL only apply to built-in types
174-
TP and TD.";
175-
amm:base "//ietf/amm/IDENT/display-hint";
176-
}
177130
amm:ident display-time-text {
178131
amm:enum 14;
179132
description
180-
"Display TP and TD values as text in accordance with RFC 3339.";
133+
"Display TP and TD values as text in accordance with
134+
RFC 3339 not using separator characters.";
181135
reference
182136
"draft-ietf-dtn-ari";
183-
amm:base "//ietf/amm/IDENT/base-time";
137+
amm:base "//ietf/amm-base/ident/display-hint-time";
184138
}
185139
amm:ident display-time-dec {
186140
amm:enum 15;
187141
description
188-
"Display TP and TD values as decimal fraction.";
142+
"Display TP and TD values as decimal fraction with units of
143+
seconds, which may or may not include a fractional part.";
189144
reference
190145
"draft-ietf-dtn-ari";
191-
amm:base "//ietf/amm/IDENT/base-time";
146+
amm:base "//ietf/amm-base/ident/display-hint-time";
192147
}
193148
}

0 commit comments

Comments
 (0)