-
Notifications
You must be signed in to change notification settings - Fork 1
/
batfish.json
294 lines (294 loc) · 11.3 KB
/
batfish.json
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
{
"name": "batfish",
"author": "jmc",
"version": 1.0,
"categories": [
"networking",
"firewalls",
"routing"
],
"description": "Run api commands against a Batfish service to precalculate and validate routing policy and firewall rules",
"icon": null,
"requirements": {
"jimi_min_version": null,
"jimi_max_version": null,
"plugins": []
},
"collections": {},
"triggers": {},
"actions": {
"batfish": {
"display_name": "batfish",
"className": "_batfish",
"class_location": "models.action",
"description": "Batfish Routing Questions",
"fields": [
{
"schema_item": "src_ip",
"schema_value": "src_ip",
"type": "input",
"label": "Source IP Address / Source Network",
"description": "Source IP or Network to be queried",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "dst_ip",
"schema_value": "dst_ip",
"type": "input",
"label": "Destination IP address / Destination Network",
"description": "Destination IP or Network to be queried",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "dst_port",
"schema_value": "dst_port",
"type": "input",
"label": "Destination Port / Destination App / Destination Service",
"description": "Destination Port / Destination Application",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "batfish_server",
"schema_value": "batfish_server",
"type": "input",
"label": "Batfish Server IP",
"description": "Batfish Server IP",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "snapshots_dir",
"schema_value": "snapshots_dir",
"type": "input",
"label": "snapshots / network configs dir",
"description": "Directory where the network configs are saved to",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "batfish_network",
"schema_value": "batfish_network",
"type": "input",
"label": "Batfish Network Snapshot Name",
"description": "Arbitrary name for the Network snapshots/configs",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "device_type",
"schema_value": "device_type",
"type": "input",
"label": "Device Type",
"description": "FIREWALL, ROUTER, IPTABLES",
"required": false,
"jimi_syntax": false
}
],
"data_out": {
"result": {
"description": "Determines if the given action was successful.",
"type": "boolean",
"always_present": true,
"values": {
"True": {
"description": "Action completed successfully."
},
"False": {
"description": "Action was unsuccessful."
}
}
},
"rc": {
"description": "Returns the provided rc field value.",
"type": "number",
"always_present": true,
"values": {
"(number)": {
"description": "The integer provided within the rc field."
}
}
},
"data": {
"description": "Outputs any returned data from the executed process",
"type": "text",
"always_present": false,
"values": {
"(string)": {
"description": "The returned data from the routing query"
}
}
}
}
},
"batfishConnect": {
"display_name": "batfishConnect",
"className": "_batfishConnect",
"class_location": "models.action",
"description": "Batfish Connection Context",
"fields": [
{
"schema_item": "host",
"schema_value": "host",
"type": "input",
"label": "Batfish Server Host/IP",
"description": "Batfish Server hostname/IP",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "snapshot_folder",
"schema_value": "snapshot_folder",
"type": "input",
"label": "Snapshot folder",
"description": "Full path to snapshot folder",
"required": true,
"jimi_syntax": false
}
]
},
"batfishAccessCheck": {
"display_name": "batfishAccessCheck",
"className": "_batfishAccessCheck",
"class_location": "models.action",
"description": "Access / Policy Checker",
"fields": [
{
"schema_item": "src_ip",
"schema_value": "src_ip",
"type": "input",
"label": "Source IP",
"description": "Source IP",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "dst_ip",
"schema_value": "dst_ip",
"type": "input",
"label": "Destination IP",
"description": "Destination IP",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "applications",
"schema_value": "applications",
"type": "input",
"label": "Applications",
"description": "List of applications (e.g. https, http)",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "dst_ports",
"schema_value": "dst_ports",
"type": "input",
"label": "Destination Ports",
"description": "List of destination ports if applicable",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "ip_protocols",
"schema_value": "ip_protocols",
"type": "input",
"label": "List of protocols",
"description": "List of protocols if applicable. (E.g. TCP, UDP)",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "nodes",
"schema_value": "nodes",
"type": "input",
"label": "List of nodes",
"description": "List of nodes/devices to check policy (E.g. fw-site2, fw-site1, fw-internet-edge, fw-dmz)",
"required": true,
"jimi_syntax": false
}
]
},
"batfishReachabilityCheck": {
"display_name": "batfishReachabilityCheck",
"className": "_batfishReachabilityCheck",
"class_location": "models.action",
"description": "Reachability and Route Check",
"fields": [
{
"schema_item": "src_ips",
"schema_value": "src_ips",
"type": "input",
"label": "Source IPs",
"description": "Source IPs",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "dst_ips",
"schema_value": "dst_ips",
"type": "input",
"label": "Destination IPs",
"description": "Destination IPs",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "start_node",
"schema_value": "start_node",
"type": "input",
"label": "Start Node",
"description": "Start Node, e.g. fw-internet-edge",
"required": true,
"jimi_syntax": false
}
]
},
"batfishTraceRouteCheck": {
"display_name": "batfishTraceRouteCheck",
"className": "_batfishTraceRouteCheck",
"class_location": "models.action",
"description": "Traceroute Check",
"fields": [
{
"schema_item": "src_ip",
"schema_value": "src_ip",
"type": "input",
"label": "Source IP",
"description": "Source IP",
"required": false,
"jimi_syntax": false
},
{
"schema_item": "destination_ip",
"schema_value": "destination_ip",
"type": "input",
"label": "Destination IP/Network",
"description": "Lookup route for destination IP/Network",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "start_interface",
"schema_value": "start_interface",
"type": "input",
"label": "Start Interface",
"description": "interface to simulate route lookup from, e.g. port1, port2, eth0",
"required": true,
"jimi_syntax": false
},
{
"schema_item": "start_node",
"schema_value": "start_node",
"type": "input",
"label": "Start Node",
"description": "Node/Device simulate route lookup from, e.g. fw-internet-edge, hub1, dmz-fw1 etc",
"required": true,
"jimi_syntax": false
}
]
}
}
}