Commit 68891c7
authored
Add ARIN support for IRR route objects and RPKI ROAs (#1)
* Add ARIN support for IRR route objects and RPKI ROAs
* Add --registry flag and run RIPE/ARIN before RADb
Adds --registry (repeatable) to select which registries to update.
Without it, all configured registries run. Reorders execution to
RIPE → ARIN → RADb so upstream IRR state is set before RADb syncs.
* Fix ARIN route and ROA API compatibility
- Route body: description uses required <line number="N"> children
instead of a plain text node (schema requirement)
- ROA transaction: add required <name> element; sanitize to
allowed chars (a-z A-Z 0-9 _ - space)
- ROA parsing: strip leading zeros from IPv4 octets returned by ARIN
- ARIN credentials: add optional test_api_key for OTE environment,
used automatically in test mode when present
* Add delete support for ARIN route objects and ROAs
Routes and ROAs can be marked with delete: true in config to trigger
deletion on the next run. ROA deletion uses the existing diff logic:
delete-marked entries are included in managed prefixes but excluded
from desired, so existing ROAs for that prefix are removed.
Also fixes autoLink attribute casing on roaHandle (was autolink),
and improves ROA dry-run to fetch current state and show accurate
add/delete counts.
* Add --setup-ote to replicate ARIN production into OTE
Fetches routes and ROAs from ARIN production and syncs them into
the OTE environment. Useful after OTE resets (monthly wipe) or
when new production routes need to be available for testing.
Requires arin.credentials.test_api_key in config.1 parent 7a4016f commit 68891c7
9 files changed
Lines changed: 698 additions & 14 deletions
File tree
- src/rir_updater
- arin
- tests/arin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
| |||
76 | 95 | | |
77 | 96 | | |
78 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
79 | 107 | | |
80 | 108 | | |
81 | 109 | | |
| |||
89 | 117 | | |
90 | 118 | | |
91 | 119 | | |
92 | | - | |
| 120 | + | |
93 | 121 | | |
94 | 122 | | |
95 | | - | |
96 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
97 | 126 | | |
98 | | - | |
| 127 | + | |
99 | 128 | | |
100 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
101 | 133 | | |
102 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
103 | 139 | | |
104 | 140 | | |
105 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
106 | 144 | | |
107 | 145 | | |
108 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
26 | 46 | | |
27 | 47 | | |
28 | 48 | | |
| |||
Whitespace-only changes.
0 commit comments