1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
pub struct BundledTal {
pub name: &'static str,
pub description: &'static str,
pub category: Category,
pub opt_in: Option<OptIn>,
pub content: &'static str,
}
pub struct OptIn {
pub option_name: &'static str,
pub option_help: &'static str,
pub message: &'static str,
}
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum Category {
Production,
RirTest,
Test,
Other,
}
pub static BUNDLED_TALS: &[BundledTal] = &[
BundledTal {
name: "afrinic",
description: "AFRINIC production TAL",
category: Category::Production,
opt_in: None,
content: include_str!("../tals/afrinic.tal"),
},
BundledTal {
name: "apnic",
description: "APNIC production TAL",
category: Category::Production,
opt_in: None,
content: include_str!("../tals/apnic.tal"),
},
BundledTal {
name: "arin",
description: "ARIN production TAL",
category: Category::Production,
opt_in: Some(OptIn {
option_name: "accept-arin-rpa",
option_help:
"You have read and accept \
https://www.arin.net/resources/manage/rpki/rpa.pdf",
message:
"Before we can install the ARIN TAL, you must have read\n\
and agree to the ARIN Relying Party Agreement (RPA).\n\
It is available at\n\
\n\
https://www.arin.net/resources/manage/rpki/rpa.pdf\n\
\n\
If you agree to the RPA, please run the command\n\
again with the --accept-arin-rpa option."
}),
content: include_str!("../tals/arin.tal"),
},
BundledTal {
name: "lacnic",
description: "LACNIC production TAL",
category: Category::Production,
opt_in: None,
content: include_str!("../tals/lacnic.tal"),
},
BundledTal {
name: "ripe",
description: "RIPE production TAL",
category: Category::Production,
opt_in: None,
content: include_str!("../tals/ripe.tal"),
},
BundledTal {
name: "apnic-testbed",
description: "APNIC RPKI Testbed",
category: Category::RirTest,
opt_in: None,
content: include_str!("../tals/apnic-testbed.tal"),
},
BundledTal {
name: "arin-ote",
description: "ARIN Operational Test and Evaluation Environment",
category: Category::RirTest,
opt_in: None,
content: include_str!("../tals/arin-ote.tal"),
},
BundledTal {
name: "ripe-pilot",
description: "RIPE NCC RPKI Test Environment",
category: Category::RirTest,
opt_in: None,
content: include_str!("../tals/ripe-pilot.tal"),
},
BundledTal {
name: "nlnetlabs-testbed",
description: "NLnet Labs RPKI Testbed",
category: Category::Test,
opt_in: None,
content: include_str!("../tals/nlnetlabs-testbed.tal"),
}
];