Skip to content

Commit 8568c84

Browse files
committed
Fix client subnet authority
- `generator/client_subnet_authority`: Fix #116: Fix handling of `Segment Routing (SRv6) SIDs` allocation in IANA IPv6 address assignment CSV - `tests`: Update IANA files
1 parent 602ca41 commit 8568c84

File tree

3 files changed

+64
-55
lines changed

3 files changed

+64
-55
lines changed

dsc_datatool/generator/client_subnet_authority.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def _read(self, input):
6464
else:
6565
if status == 'RESERVED':
6666
rir = 'IANA'
67+
elif designation == 'Segment Routing (SRv6) SIDs':
68+
# TODO: How to better handle this weird allocation?
69+
rir = 'IANA'
6770
else:
6871
raise Exception('Unknown whois/designation: %r/%r' % (whois, designation))
6972

tests/ipv4-address-space.csv

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Prefix,Designation,Date,WHOIS,RDAP,Status [1],Note
2-
000/8,IANA - Local Identification,1981-09,,,RESERVED,[2]
2+
000/8,IANA - Local Identification,1981-09,,,RESERVED,[2][3]
33
001/8,APNIC,2010-01,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
44
002/8,RIPE NCC,2009-09,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
55
003/8,Administered by ARIN,1994-05,whois.arin.net,"https://rdap.arin.net/registry
@@ -15,14 +15,14 @@ http://rdap.arin.net/registry",LEGACY,
1515
http://rdap.arin.net/registry",LEGACY,
1616
009/8,Administered by ARIN,1992-08,whois.arin.net,"https://rdap.arin.net/registry
1717
http://rdap.arin.net/registry",LEGACY,
18-
010/8,IANA - Private Use,1995-06,,,RESERVED,[3]
18+
010/8,IANA - Private Use,1995-06,,,RESERVED,[4]
1919
011/8,DoD Intel Information Systems,1993-05,whois.arin.net,"https://rdap.arin.net/registry
2020
http://rdap.arin.net/registry",LEGACY,
2121
012/8,AT&T Bell Laboratories,1995-06,whois.arin.net,"https://rdap.arin.net/registry
2222
http://rdap.arin.net/registry",LEGACY,
2323
013/8,Administered by ARIN,1991-09,whois.arin.net,"https://rdap.arin.net/registry
2424
http://rdap.arin.net/registry",LEGACY,
25-
014/8,APNIC,2010-04,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,[4]
25+
014/8,APNIC,2010-04,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,[5]
2626
015/8,Administered by ARIN,1994-07,whois.arin.net,"https://rdap.arin.net/registry
2727
http://rdap.arin.net/registry",LEGACY,
2828
016/8,Administered by ARIN,1994-11,whois.arin.net,"https://rdap.arin.net/registry
@@ -80,7 +80,7 @@ http://rdap.arin.net/registry",LEGACY,
8080
046/8,RIPE NCC,2009-09,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
8181
047/8,Administered by ARIN,1991-01,whois.arin.net,"https://rdap.arin.net/registry
8282
http://rdap.arin.net/registry",LEGACY,
83-
048/8,Prudential Securities Inc.,1995-05,whois.arin.net,"https://rdap.arin.net/registry
83+
048/8,Administered by ARIN,1995-05,whois.arin.net,"https://rdap.arin.net/registry
8484
http://rdap.arin.net/registry",LEGACY,
8585
049/8,APNIC,2010-08,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
8686
050/8,ARIN,2010-02,whois.arin.net,"https://rdap.arin.net/registry
@@ -93,7 +93,7 @@ http://rdap.arin.net/registry",LEGACY,
9393
http://rdap.arin.net/registry",LEGACY,
9494
055/8,DoD Network Information Center,1995-04,whois.arin.net,"https://rdap.arin.net/registry
9595
http://rdap.arin.net/registry",LEGACY,
96-
056/8,US Postal Service,1994-06,whois.arin.net,"https://rdap.arin.net/registry
96+
056/8,Administered by ARIN,1994-06,whois.arin.net,"https://rdap.arin.net/registry
9797
http://rdap.arin.net/registry",LEGACY,
9898
057/8,Administered by RIPE NCC,1995-05,whois.ripe.net,https://rdap.db.ripe.net/,LEGACY,
9999
058/8,APNIC,2004-04,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
@@ -157,7 +157,7 @@ http://rdap.arin.net/registry",ALLOCATED,
157157
099/8,ARIN,2006-10,whois.arin.net,"https://rdap.arin.net/registry
158158
http://rdap.arin.net/registry",ALLOCATED,
159159
100/8,ARIN,2010-11,whois.arin.net,"https://rdap.arin.net/registry
160-
http://rdap.arin.net/registry",ALLOCATED,[5]
160+
http://rdap.arin.net/registry",ALLOCATED,[6]
161161
101/8,APNIC,2010-08,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
162162
102/8,AFRINIC,2011-02,whois.afrinic.net,"https://rdap.afrinic.net/rdap/
163163
http://rdap.afrinic.net/rdap/",ALLOCATED,
@@ -189,7 +189,7 @@ http://rdap.arin.net/registry",ALLOCATED,
189189
124/8,APNIC,2005-01,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
190190
125/8,APNIC,2005-01,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
191191
126/8,APNIC,2005-01,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
192-
127/8,IANA - Loopback,1981-09,,,RESERVED,[6]
192+
127/8,IANA - Loopback,1981-09,,,RESERVED,[7]
193193
128/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
194194
http://rdap.arin.net/registry",LEGACY,
195195
129/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
@@ -266,12 +266,12 @@ http://rdap.arin.net/registry",LEGACY,
266266
168/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
267267
http://rdap.arin.net/registry",LEGACY,
268268
169/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
269-
http://rdap.arin.net/registry",LEGACY,[7]
269+
http://rdap.arin.net/registry",LEGACY,[8]
270270
170/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
271271
http://rdap.arin.net/registry",LEGACY,
272272
171/8,Administered by APNIC,1993-05,whois.apnic.net,https://rdap.apnic.net/,LEGACY,
273273
172/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
274-
http://rdap.arin.net/registry",LEGACY,[8]
274+
http://rdap.arin.net/registry",LEGACY,[9]
275275
173/8,ARIN,2008-02,whois.arin.net,"https://rdap.arin.net/registry
276276
http://rdap.arin.net/registry",ALLOCATED,
277277
174/8,ARIN,2008-02,whois.arin.net,"https://rdap.arin.net/registry
@@ -295,7 +295,7 @@ http://rdap.arin.net/registry",ALLOCATED,
295295
190/8,LACNIC,1995-06,whois.lacnic.net,https://rdap.lacnic.net/rdap/,ALLOCATED,
296296
191/8,Administered by LACNIC,1993-05,whois.lacnic.net,https://rdap.lacnic.net/rdap/,LEGACY,
297297
192/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
298-
http://rdap.arin.net/registry",LEGACY,[9][10]
298+
http://rdap.arin.net/registry",LEGACY,[10][11]
299299
193/8,RIPE NCC,1993-05,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
300300
194/8,RIPE NCC,1993-05,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
301301
195/8,RIPE NCC,1993-05,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
@@ -304,13 +304,13 @@ http://rdap.afrinic.net/rdap/",LEGACY,
304304
197/8,AFRINIC,2008-10,whois.afrinic.net,"https://rdap.afrinic.net/rdap/
305305
http://rdap.afrinic.net/rdap/",ALLOCATED,
306306
198/8,Administered by ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
307-
http://rdap.arin.net/registry",LEGACY,[11]
307+
http://rdap.arin.net/registry",LEGACY,[12]
308308
199/8,ARIN,1993-05,whois.arin.net,"https://rdap.arin.net/registry
309309
http://rdap.arin.net/registry",ALLOCATED,
310310
200/8,LACNIC,2002-11,whois.lacnic.net,https://rdap.lacnic.net/rdap/,ALLOCATED,
311311
201/8,LACNIC,2003-04,whois.lacnic.net,https://rdap.lacnic.net/rdap/,ALLOCATED,
312312
202/8,APNIC,1993-05,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
313-
203/8,APNIC,1993-05,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,[12]
313+
203/8,APNIC,1993-05,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,[13]
314314
204/8,ARIN,1994-03,whois.arin.net,"https://rdap.arin.net/registry
315315
http://rdap.arin.net/registry",ALLOCATED,
316316
205/8,ARIN,1994-03,whois.arin.net,"https://rdap.arin.net/registry
@@ -340,35 +340,35 @@ http://rdap.arin.net/registry",ALLOCATED,
340340
221/8,APNIC,2002-07,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
341341
222/8,APNIC,2003-02,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
342342
223/8,APNIC,2010-04,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
343-
224/8,Multicast,1981-09,,,RESERVED,[13]
344-
225/8,Multicast,1981-09,,,RESERVED,[13]
345-
226/8,Multicast,1981-09,,,RESERVED,[13]
346-
227/8,Multicast,1981-09,,,RESERVED,[13]
347-
228/8,Multicast,1981-09,,,RESERVED,[13]
348-
229/8,Multicast,1981-09,,,RESERVED,[13]
349-
230/8,Multicast,1981-09,,,RESERVED,[13]
350-
231/8,Multicast,1981-09,,,RESERVED,[13]
351-
232/8,Multicast,1981-09,,,RESERVED,[13]
352-
233/8,Multicast,1981-09,,,RESERVED,[13]
353-
234/8,Multicast,1981-09,,,RESERVED,[13][14]
354-
235/8,Multicast,1981-09,,,RESERVED,[13]
355-
236/8,Multicast,1981-09,,,RESERVED,[13]
356-
237/8,Multicast,1981-09,,,RESERVED,[13]
357-
238/8,Multicast,1981-09,,,RESERVED,[13]
358-
239/8,Multicast,1981-09,,,RESERVED,[13][15]
359-
240/8,Future use,1981-09,,,RESERVED,[16]
360-
241/8,Future use,1981-09,,,RESERVED,[16]
361-
242/8,Future use,1981-09,,,RESERVED,[16]
362-
243/8,Future use,1981-09,,,RESERVED,[16]
363-
244/8,Future use,1981-09,,,RESERVED,[16]
364-
245/8,Future use,1981-09,,,RESERVED,[16]
365-
246/8,Future use,1981-09,,,RESERVED,[16]
366-
247/8,Future use,1981-09,,,RESERVED,[16]
367-
248/8,Future use,1981-09,,,RESERVED,[16]
368-
249/8,Future use,1981-09,,,RESERVED,[16]
369-
250/8,Future use,1981-09,,,RESERVED,[16]
370-
251/8,Future use,1981-09,,,RESERVED,[16]
371-
252/8,Future use,1981-09,,,RESERVED,[16]
372-
253/8,Future use,1981-09,,,RESERVED,[16]
373-
254/8,Future use,1981-09,,,RESERVED,[16]
374-
255/8,Future use,1981-09,,,RESERVED,[16][17]
343+
224/8,Multicast,1981-09,,,RESERVED,[14]
344+
225/8,Multicast,1981-09,,,RESERVED,[14]
345+
226/8,Multicast,1981-09,,,RESERVED,[14]
346+
227/8,Multicast,1981-09,,,RESERVED,[14]
347+
228/8,Multicast,1981-09,,,RESERVED,[14]
348+
229/8,Multicast,1981-09,,,RESERVED,[14]
349+
230/8,Multicast,1981-09,,,RESERVED,[14]
350+
231/8,Multicast,1981-09,,,RESERVED,[14]
351+
232/8,Multicast,1981-09,,,RESERVED,[14]
352+
233/8,Multicast,1981-09,,,RESERVED,[14]
353+
234/8,Multicast,1981-09,,,RESERVED,[14][15]
354+
235/8,Multicast,1981-09,,,RESERVED,[14]
355+
236/8,Multicast,1981-09,,,RESERVED,[14]
356+
237/8,Multicast,1981-09,,,RESERVED,[14]
357+
238/8,Multicast,1981-09,,,RESERVED,[14]
358+
239/8,Multicast,1981-09,,,RESERVED,[14][16]
359+
240/8,Future use,1981-09,,,RESERVED,[17]
360+
241/8,Future use,1981-09,,,RESERVED,[17]
361+
242/8,Future use,1981-09,,,RESERVED,[17]
362+
243/8,Future use,1981-09,,,RESERVED,[17]
363+
244/8,Future use,1981-09,,,RESERVED,[17]
364+
245/8,Future use,1981-09,,,RESERVED,[17]
365+
246/8,Future use,1981-09,,,RESERVED,[17]
366+
247/8,Future use,1981-09,,,RESERVED,[17]
367+
248/8,Future use,1981-09,,,RESERVED,[17]
368+
249/8,Future use,1981-09,,,RESERVED,[17]
369+
250/8,Future use,1981-09,,,RESERVED,[17]
370+
251/8,Future use,1981-09,,,RESERVED,[17]
371+
252/8,Future use,1981-09,,,RESERVED,[17]
372+
253/8,Future use,1981-09,,,RESERVED,[17]
373+
254/8,Future use,1981-09,,,RESERVED,[17]
374+
255/8,Future use,1981-09,,,RESERVED,[17][18]

tests/ipv6-unicast-address-assignments.csv

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,30 @@ Prefix,Designation,Date,WHOIS,RDAP,Status,Note
22
2001:0000::/23,IANA,1999-07-01,whois.iana.org,,ALLOCATED,"2001:0000::/23 is reserved for IETF Protocol Assignments [RFC2928].
33
2001:0000::/32 is reserved for TEREDO [RFC4380].
44
2001:1::1/128 is reserved for Port Control Protocol Anycast [RFC7723].
5-
2001:2::/48 is reserved for Benchmarking [RFC5180][RFC Errata
6-
1752].
5+
2001:1::2/128 is reserved for Traversal Using Relays around NAT Anycast [RFC8155].
6+
2001:1::3/128 is reserved for DNS-SD Service Registration Protocol Anycast [RFC-ietf-dnssd-srp-25].
7+
2001:2::/48 is reserved for Benchmarking [RFC5180][RFC Errata 1752].
78
2001:3::/32 is reserved for AMT [RFC7450].
89
2001:4:112::/48 is reserved for AS112-v6 [RFC7535].
910
2001:10::/28 is deprecated (previously ORCHID) [RFC4843].
1011
2001:20::/28 is reserved for ORCHIDv2 [RFC7343].
11-
2001:db8::/32 is reserved for Documentation [RFC3849].
12+
2001:30::/28 is reserved for Drone Remote ID Protocol Entity Tags (DETs) [RFC9374].
1213
For complete registration details, see [IANA registry iana-ipv6-special-registry]."
1314
2001:0200::/23,APNIC,1999-07-01,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
1415
2001:0400::/23,ARIN,1999-07-01,whois.arin.net,"https://rdap.arin.net/registry
1516
http://rdap.arin.net/registry",ALLOCATED,
1617
2001:0600::/23,RIPE NCC,1999-07-01,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
17-
2001:0800::/22,RIPE NCC,2002-11-02,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,"2001:0800::/23 was allocated on 2002-05-02. The more recent
18-
allocation (2002-11-02) incorporates the previous allocation."
18+
2001:0800::/22,RIPE NCC,2002-11-02,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,2001:0800::/23 was allocated on 2002-05-02. The more recent allocation (2002-11-02) incorporates the previous allocation.
1919
2001:0c00::/23,APNIC,2002-05-02,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,"2001:db8::/32 reserved for Documentation [RFC3849].
2020
For complete registration details, see [IANA registry iana-ipv6-special-registry]."
2121
2001:0e00::/23,APNIC,2003-01-01,whois.apnic.net,https://rdap.apnic.net/,ALLOCATED,
2222
2001:1200::/23,LACNIC,2002-11-01,whois.lacnic.net,https://rdap.lacnic.net/rdap/,ALLOCATED,
23-
2001:1400::/22,RIPE NCC,2003-07-01,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,"2001:1400::/23 was allocated on 2003-02-01. The more recent
24-
allocation (2003-07-01) incorporates the previous allocation."
23+
2001:1400::/22,RIPE NCC,2003-07-01,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,2001:1400::/23 was allocated on 2003-02-01. The more recent allocation (2003-07-01) incorporates the previous allocation.
2524
2001:1800::/23,ARIN,2003-04-01,whois.arin.net,"https://rdap.arin.net/registry
2625
http://rdap.arin.net/registry",ALLOCATED,
2726
2001:1a00::/23,RIPE NCC,2004-01-01,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
2827
2001:1c00::/22,RIPE NCC,2004-05-04,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
29-
2001:2000::/19,RIPE NCC,2019-03-12,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,"2001:2000::/20, 2001:3000::/21, and 2001:3800::/22
30-
were allocated on 2004-05-04. The more recent allocation
31-
(2019-03-12) incorporates all these previous allocations."
28+
2001:2000::/19,RIPE NCC,2019-03-12,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,"2001:2000::/20, 2001:3000::/21, and 2001:3800::/22 were allocated on 2004-05-04. The more recent allocation (2019-03-12) incorporates all these previous allocations."
3229
2001:4000::/23,RIPE NCC,2004-06-11,whois.ripe.net,https://rdap.db.ripe.net/,ALLOCATED,
3330
2001:4200::/23,AFRINIC,2004-06-01,whois.afrinic.net,"https://rdap.afrinic.net/rdap/
3431
http://rdap.afrinic.net/rdap/",ALLOCATED,
@@ -71,4 +68,13 @@ http://rdap.afrinic.net/rdap/",ALLOCATED,
7168
3ffe::/16,IANA,2008-04,,,RESERVED,"3ffe:831f::/32 was used for Teredo in some old but widely distributed networking stacks. This usage is
7269
deprecated in favor of 2001::/32, which was allocated for the purpose in [RFC4380].
7370
3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156]"
74-
5f00::/8,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156]
71+
5f00::/16,Segment Routing (SRv6) SIDs,2024-04-23,,,ALLOCATED,"5f00::/16 is reserved for Segment Routing (SRv6) SIDs [RFC-ietf-6man-sids-06].
72+
For complete registration details, see [IANA registry iana-ipv6-special-registry]."
73+
5f01::/16,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
74+
5f02::/15,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
75+
5f04::/14,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
76+
5f08::/13,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
77+
5f10::/12,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
78+
5f20::/11,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
79+
5f40::/10,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].
80+
5f80::/9,IANA,2008-04,,,RESERVED,3ffe::/16 and 5f00::/8 were used for the 6bone but were returned. [RFC5156].

0 commit comments

Comments
 (0)