Skip to content

Commit dbe4ff3

Browse files
committed
remove outer container, as sx:structure gives this to us for free, rename sid identifiers. Make sure request document gets generated when base changes
1 parent c088e3b commit dbe4ff3

3 files changed

Lines changed: 31 additions & 24 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ yang/ietf-voucher@${YANGDATE}.yang: ietf-voucher.yang
4545
sed -e 's/YYYY-MM-DD/'${YANGDATE}'/g' ietf-voucher.yang | (cd yang && tee ietf-voucher-sed.yang | ${PYANG} ${PYANGPATH} --keep-comments -f yang >ietf-voucher@${YANGDATE}.yang )
4646
ln -s -f ietf-voucher@${YANGDATE}.yang yang/ietf-voucher-latest.yang
4747

48-
yang/ietf-voucher-request@${YANGDATE}.yang: ietf-voucher-request.yang
48+
yang/ietf-voucher-request@${YANGDATE}.yang: ietf-voucher-request.yang ietf-voucher.yang
4949
mkdir -p yang
5050
sed -e 's/YYYY-MM-DD/'${YANGDATE}'/g' ietf-voucher-request.yang | (cd yang && ${PYANG} ${PYANGPATH} --keep-comments -f yang >ietf-voucher-request@${YANGDATE}.yang )
5151
ln -s -f ietf-voucher-request@${YANGDATE}.yang yang/ietf-voucher-request-latest.yang

ietf-voucher.yang

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ RFCEDITOR: please replace XXXX with the RFC number assigned.
7171
grouping voucher-artifact-grouping {
7272
description
7373
"Grouping to allow reuse/extensions in future work.";
74-
container voucher {
75-
description
76-
"A voucher assigns a pledge to an owner using
77-
one of the (pinned-domain-*) value.";
7874

7975
leaf created-on {
8076
type yang:date-and-time;
@@ -320,8 +316,7 @@ RFCEDITOR: please replace XXXX with the RFC number assigned.
320316
a VoIP phone to point to the correct hosted
321317
PBX, for example.";
322318
}
323-
}
324-
}
319+
}
325320

326321
// Top-level statement
327322
sx:structure voucher {

ietf-voucher@2023-01-10.sid

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"ietf-sid-file:sid-file": {
33
"module-name": "ietf-voucher",
44
"module-revision": "2023-01-10",
5-
"sid-file-version": 4,
5+
"sid-file-version": 5,
66
"sid-file-status": "unpublished",
77
"dependency-revision": [
88
{
@@ -49,6 +49,18 @@
4949
"module-name": "ietf-inet-types",
5050
"module-revision": "2013-07-15"
5151
},
52+
{
53+
"module-name": "ietf-yang-structure-ext",
54+
"module-revision": "2020-06-17"
55+
},
56+
{
57+
"module-name": "ietf-yang-types",
58+
"module-revision": "2013-07-15"
59+
},
60+
{
61+
"module-name": "ietf-inet-types",
62+
"module-revision": "2013-07-15"
63+
},
5264
{
5365
"module-name": "ietf-yang-structure-ext",
5466
"module-revision": "2020-06-17"
@@ -68,38 +80,38 @@
6880
},
6981
{
7082
"namespace": "data",
71-
"identifier": "/ietf-voucher:voucher/voucher",
83+
"identifier": "/ietf-voucher:voucher",
7284
"sid": "2451"
7385
},
7486
{
7587
"namespace": "data",
76-
"identifier": "/ietf-voucher:voucher/voucher/assertion",
88+
"identifier": "/ietf-voucher:voucher/assertion",
7789
"sid": "2452"
7890
},
7991
{
8092
"namespace": "data",
81-
"identifier": "/ietf-voucher:voucher/voucher/created-on",
93+
"identifier": "/ietf-voucher:voucher/created-on",
8294
"sid": "2453"
8395
},
8496
{
8597
"namespace": "data",
86-
"identifier": "/ietf-voucher:voucher/voucher/domain-cert-revocation-checks",
98+
"identifier": "/ietf-voucher:voucher/domain-cert-revocation-checks",
8799
"sid": "2454"
88100
},
89101
{
90102
"namespace": "data",
91-
"identifier": "/ietf-voucher:voucher/voucher/expires-on",
103+
"identifier": "/ietf-voucher:voucher/expires-on",
92104
"status": "unstable",
93105
"sid": "2455"
94106
},
95107
{
96108
"namespace": "data",
97-
"identifier": "/ietf-voucher:voucher/voucher/idevid-issuer",
109+
"identifier": "/ietf-voucher:voucher/idevid-issuer",
98110
"sid": "2456"
99111
},
100112
{
101113
"namespace": "data",
102-
"identifier": "/ietf-voucher:voucher/voucher/last-renewal-date",
114+
"identifier": "/ietf-voucher:voucher/last-renewal-date",
103115
"sid": "2457"
104116
},
105117
{
@@ -109,48 +121,48 @@
109121
},
110122
{
111123
"namespace": "data",
112-
"identifier": "/ietf-voucher:voucher/voucher/pinned-domain-cert",
124+
"identifier": "/ietf-voucher:voucher/pinned-domain-cert",
113125
"status": "unstable",
114126
"sid": "2459"
115127
},
116128
{
117129
"namespace": "data",
118-
"identifier": "/ietf-voucher:voucher/voucher/pinned-domain-pubk",
130+
"identifier": "/ietf-voucher:voucher/pinned-domain-pubk",
119131
"status": "unstable",
120132
"sid": "2460"
121133
},
122134
{
123135
"namespace": "data",
124-
"identifier": "/ietf-voucher:voucher/voucher/pinned-domain-pubk-sha256",
136+
"identifier": "/ietf-voucher:voucher/pinned-domain-pubk-sha256",
125137
"status": "unstable",
126138
"sid": "2461"
127139
},
128140
{
129141
"namespace": "data",
130-
"identifier": "/ietf-voucher:voucher/voucher/serial-number",
142+
"identifier": "/ietf-voucher:voucher/serial-number",
131143
"sid": "2462"
132144
},
133145
{
134146
"namespace": "data",
135-
"identifier": "/ietf-voucher:voucher/voucher/additional-configuration-url",
147+
"identifier": "/ietf-voucher:voucher/additional-configuration-url",
136148
"status": "unstable",
137149
"sid": "2463"
138150
},
139151
{
140152
"namespace": "data",
141-
"identifier": "/ietf-voucher:voucher/voucher/est-domain",
153+
"identifier": "/ietf-voucher:voucher/est-domain",
142154
"status": "unstable",
143155
"sid": "2464"
144156
},
145157
{
146158
"namespace": "data",
147-
"identifier": "/ietf-voucher:voucher/voucher/manufacturer-private",
159+
"identifier": "/ietf-voucher:voucher/manufacturer-private",
148160
"status": "unstable",
149161
"sid": "2465"
150162
},
151163
{
152164
"namespace": "data",
153-
"identifier": "/ietf-voucher:voucher/voucher/nonce",
165+
"identifier": "/ietf-voucher:voucher/nonce",
154166
"status": "unstable",
155167
"sid": "2466"
156168
},
@@ -162,7 +174,7 @@
162174
},
163175
{
164176
"namespace": "data",
165-
"identifier": "/ietf-voucher:voucher/voucher/extensions",
177+
"identifier": "/ietf-voucher:voucher/extensions",
166178
"status": "unstable",
167179
"sid": "2468"
168180
}

0 commit comments

Comments
 (0)