@homeflare/distilled-opnsense 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +95 -0
- package/dist/credentials.d.ts +39 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +78 -0
- package/dist/credentials.js.map +1 -0
- package/dist/errors.d.ts +110 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +63 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +13 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +115 -0
- package/dist/protocol.js.map +1 -0
- package/dist/retry.d.ts +56 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +49 -0
- package/dist/retry.js.map +1 -0
- package/dist/services/firewall_alias.d.ts +243 -0
- package/dist/services/firewall_alias.d.ts.map +1 -0
- package/dist/services/firewall_alias.js +222 -0
- package/dist/services/firewall_alias.js.map +1 -0
- package/dist/services/firewall_category.d.ts +122 -0
- package/dist/services/firewall_category.d.ts.map +1 -0
- package/dist/services/firewall_category.js +161 -0
- package/dist/services/firewall_category.js.map +1 -0
- package/dist/services/firewall_filter.d.ts +289 -0
- package/dist/services/firewall_filter.d.ts.map +1 -0
- package/dist/services/firewall_filter.js +225 -0
- package/dist/services/firewall_filter.js.map +1 -0
- package/dist/services/firewall_group.d.ts +122 -0
- package/dist/services/firewall_group.d.ts.map +1 -0
- package/dist/services/firewall_group.js +154 -0
- package/dist/services/firewall_group.js.map +1 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +10 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/quagga_bgp.d.ts +1135 -0
- package/dist/services/quagga_bgp.d.ts.map +1 -0
- package/dist/services/quagga_bgp.js +1263 -0
- package/dist/services/quagga_bgp.js.map +1 -0
- package/dist/services/quagga_general.d.ts +55 -0
- package/dist/services/quagga_general.d.ts.map +1 -0
- package/dist/services/quagga_general.js +48 -0
- package/dist/services/quagga_general.js.map +1 -0
- package/dist/services/quagga_service.d.ts +60 -0
- package/dist/services/quagga_service.d.ts.map +1 -0
- package/dist/services/quagga_service.js +77 -0
- package/dist/services/quagga_service.js.map +1 -0
- package/dist/services/routing_settings.d.ts +192 -0
- package/dist/services/routing_settings.d.ts.map +1 -0
- package/dist/services/routing_settings.js +169 -0
- package/dist/services/routing_settings.js.map +1 -0
- package/dist/traits.d.ts +11 -0
- package/dist/traits.d.ts.map +1 -0
- package/dist/traits.js +11 -0
- package/dist/traits.js.map +1 -0
- package/package.json +75 -0
- package/src/credentials.ts +111 -0
- package/src/errors.ts +115 -0
- package/src/index.ts +32 -0
- package/src/protocol.ts +177 -0
- package/src/retry.ts +80 -0
- package/src/services/firewall_alias.ts +572 -0
- package/src/services/firewall_category.ts +359 -0
- package/src/services/firewall_filter.ts +671 -0
- package/src/services/firewall_group.ts +350 -0
- package/src/services/index.ts +9 -0
- package/src/services/quagga_bgp.ts +2955 -0
- package/src/services/quagga_general.ts +132 -0
- package/src/services/quagga_service.ts +182 -0
- package/src/services/routing_settings.ts +419 -0
- package/src/traits.ts +36 -0
|
@@ -0,0 +1,1263 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-opnsense). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { OpnsenseProtocol, } from "../protocol.js";
|
|
6
|
+
import * as Retry from "../retry.js";
|
|
7
|
+
export const AspathItemAction = S.String;
|
|
8
|
+
export const AspathItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
uuid: S.optional(S.String),
|
|
10
|
+
enabled: S.String,
|
|
11
|
+
description: S.optional(S.String),
|
|
12
|
+
number: S.String,
|
|
13
|
+
action: AspathItemAction,
|
|
14
|
+
as: S.String,
|
|
15
|
+
})).annotate({ identifier: "AspathItem" });
|
|
16
|
+
export const AddAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
17
|
+
aspath: S.optional(AspathItem),
|
|
18
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/addAspath", code: 200 }))).annotate({
|
|
19
|
+
identifier: "AddAspathRequest",
|
|
20
|
+
});
|
|
21
|
+
export const AddAspathResult = S.String;
|
|
22
|
+
export const AddAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
23
|
+
result: S.optional(AddAspathResult),
|
|
24
|
+
uuid: S.optional(S.String),
|
|
25
|
+
})).annotate({
|
|
26
|
+
identifier: "AddAspathResponse",
|
|
27
|
+
});
|
|
28
|
+
export const CommunitylistItemAction = S.String;
|
|
29
|
+
export const CommunitylistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
+
uuid: S.optional(S.String),
|
|
31
|
+
enabled: S.String,
|
|
32
|
+
description: S.optional(S.String),
|
|
33
|
+
number: S.String,
|
|
34
|
+
seqnumber: S.String,
|
|
35
|
+
action: CommunitylistItemAction,
|
|
36
|
+
community: S.String,
|
|
37
|
+
})).annotate({
|
|
38
|
+
identifier: "CommunitylistItem",
|
|
39
|
+
});
|
|
40
|
+
export const AddCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
+
communitylist: S.optional(CommunitylistItem),
|
|
42
|
+
}).pipe(T.Http({
|
|
43
|
+
method: "POST",
|
|
44
|
+
uri: "/api/quagga/bgp/addCommunitylist",
|
|
45
|
+
code: 200,
|
|
46
|
+
}))).annotate({
|
|
47
|
+
identifier: "AddCommunitylistRequest",
|
|
48
|
+
});
|
|
49
|
+
export const AddCommunitylistResult = S.String;
|
|
50
|
+
export const AddCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
51
|
+
result: S.optional(AddCommunitylistResult),
|
|
52
|
+
uuid: S.optional(S.String),
|
|
53
|
+
})).annotate({
|
|
54
|
+
identifier: "AddCommunitylistResponse",
|
|
55
|
+
});
|
|
56
|
+
export const NeighborItemRemoteAsMode = S.String;
|
|
57
|
+
export const NeighborItemRemoveprivateas = S.String;
|
|
58
|
+
export const NeighborItemAllowasIn = S.String;
|
|
59
|
+
export const NeighborItemAttributeunchanged = S.String;
|
|
60
|
+
export const NeighborItemCapabilities = S.String;
|
|
61
|
+
export const NeighborItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
62
|
+
uuid: S.optional(S.String),
|
|
63
|
+
enabled: S.String,
|
|
64
|
+
description: S.optional(S.String),
|
|
65
|
+
address: S.String,
|
|
66
|
+
remote_as_mode: S.optional(NeighborItemRemoteAsMode),
|
|
67
|
+
remoteas: S.optional(S.String),
|
|
68
|
+
localas: S.optional(S.String),
|
|
69
|
+
password: S.optional(S.String),
|
|
70
|
+
weight: S.optional(S.String),
|
|
71
|
+
localip: S.optional(S.String),
|
|
72
|
+
updatesource: S.optional(S.String),
|
|
73
|
+
linklocalinterface: S.optional(S.String),
|
|
74
|
+
nexthopself: S.optional(S.String),
|
|
75
|
+
nexthopselfall: S.optional(S.String),
|
|
76
|
+
multihop: S.optional(S.String),
|
|
77
|
+
multiprotocol: S.optional(S.String),
|
|
78
|
+
rrclient: S.optional(S.String),
|
|
79
|
+
soft_reconfiguration_inbound: S.optional(S.String),
|
|
80
|
+
bfd: S.optional(S.String),
|
|
81
|
+
bfd_strict: S.optional(S.String),
|
|
82
|
+
keepalive: S.optional(S.String),
|
|
83
|
+
holddown: S.optional(S.String),
|
|
84
|
+
connecttimer: S.optional(S.String),
|
|
85
|
+
defaultoriginate: S.optional(S.String),
|
|
86
|
+
asoverride: S.optional(S.String),
|
|
87
|
+
removeprivateas: S.optional(NeighborItemRemoveprivateas),
|
|
88
|
+
allowas_in: S.optional(NeighborItemAllowasIn),
|
|
89
|
+
disable_connected_check: S.optional(S.String),
|
|
90
|
+
attributeunchanged: S.optional(NeighborItemAttributeunchanged),
|
|
91
|
+
capabilities: S.optional(NeighborItemCapabilities),
|
|
92
|
+
linkedPrefixlistIn: S.optional(S.String),
|
|
93
|
+
linkedPrefixlistOut: S.optional(S.String),
|
|
94
|
+
linkedRoutemapIn: S.optional(S.String),
|
|
95
|
+
linkedRoutemapOut: S.optional(S.String),
|
|
96
|
+
peergroup: S.optional(S.String),
|
|
97
|
+
})).annotate({ identifier: "NeighborItem" });
|
|
98
|
+
export const AddNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
99
|
+
neighbor: S.optional(NeighborItem),
|
|
100
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/addNeighbor", code: 200 }))).annotate({
|
|
101
|
+
identifier: "AddNeighborRequest",
|
|
102
|
+
});
|
|
103
|
+
export const AddNeighborResult = S.String;
|
|
104
|
+
export const AddNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
+
result: S.optional(AddNeighborResult),
|
|
106
|
+
uuid: S.optional(S.String),
|
|
107
|
+
})).annotate({
|
|
108
|
+
identifier: "AddNeighborResponse",
|
|
109
|
+
});
|
|
110
|
+
export const PeergroupItemRemoteAsMode = S.String;
|
|
111
|
+
export const PeergroupItemFamily = S.String;
|
|
112
|
+
export const PeergroupItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
113
|
+
uuid: S.optional(S.String),
|
|
114
|
+
enabled: S.String,
|
|
115
|
+
name: S.String,
|
|
116
|
+
remote_as_mode: S.optional(PeergroupItemRemoteAsMode),
|
|
117
|
+
remoteas: S.optional(S.String),
|
|
118
|
+
family: PeergroupItemFamily,
|
|
119
|
+
listenranges: S.optional(S.String),
|
|
120
|
+
updatesource: S.optional(S.String),
|
|
121
|
+
nexthopself: S.optional(S.String),
|
|
122
|
+
defaultoriginate: S.optional(S.String),
|
|
123
|
+
linkedPrefixlistIn: S.optional(S.String),
|
|
124
|
+
linkedPrefixlistOut: S.optional(S.String),
|
|
125
|
+
linkedRoutemapIn: S.optional(S.String),
|
|
126
|
+
linkedRoutemapOut: S.optional(S.String),
|
|
127
|
+
})).annotate({ identifier: "PeergroupItem" });
|
|
128
|
+
export const AddPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
129
|
+
peergroup: S.optional(PeergroupItem),
|
|
130
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/addPeergroup", code: 200 }))).annotate({
|
|
131
|
+
identifier: "AddPeergroupRequest",
|
|
132
|
+
});
|
|
133
|
+
export const AddPeergroupResult = S.String;
|
|
134
|
+
export const AddPeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
135
|
+
result: S.optional(AddPeergroupResult),
|
|
136
|
+
uuid: S.optional(S.String),
|
|
137
|
+
})).annotate({
|
|
138
|
+
identifier: "AddPeergroupResponse",
|
|
139
|
+
});
|
|
140
|
+
export const PrefixlistItemVersion = S.String;
|
|
141
|
+
export const PrefixlistItemAction = S.String;
|
|
142
|
+
export const PrefixlistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
143
|
+
uuid: S.optional(S.String),
|
|
144
|
+
enabled: S.String,
|
|
145
|
+
description: S.optional(S.String),
|
|
146
|
+
name: S.String,
|
|
147
|
+
version: PrefixlistItemVersion,
|
|
148
|
+
seqnumber: S.String,
|
|
149
|
+
action: PrefixlistItemAction,
|
|
150
|
+
network: S.String,
|
|
151
|
+
})).annotate({ identifier: "PrefixlistItem" });
|
|
152
|
+
export const AddPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
153
|
+
prefixlist: S.optional(PrefixlistItem),
|
|
154
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/addPrefixlist", code: 200 }))).annotate({
|
|
155
|
+
identifier: "AddPrefixlistRequest",
|
|
156
|
+
});
|
|
157
|
+
export const AddPrefixlistResult = S.String;
|
|
158
|
+
export const AddPrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
159
|
+
result: S.optional(AddPrefixlistResult),
|
|
160
|
+
uuid: S.optional(S.String),
|
|
161
|
+
})).annotate({
|
|
162
|
+
identifier: "AddPrefixlistResponse",
|
|
163
|
+
});
|
|
164
|
+
export const RedistributionItemRedistribute = S.String;
|
|
165
|
+
export const RedistributionItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
166
|
+
uuid: S.optional(S.String),
|
|
167
|
+
enabled: S.String,
|
|
168
|
+
description: S.optional(S.String),
|
|
169
|
+
redistribute: RedistributionItemRedistribute,
|
|
170
|
+
linkedRoutemap: S.optional(S.String),
|
|
171
|
+
})).annotate({
|
|
172
|
+
identifier: "RedistributionItem",
|
|
173
|
+
});
|
|
174
|
+
export const AddRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
175
|
+
redistribution: S.optional(RedistributionItem),
|
|
176
|
+
}).pipe(T.Http({
|
|
177
|
+
method: "POST",
|
|
178
|
+
uri: "/api/quagga/bgp/addRedistribution",
|
|
179
|
+
code: 200,
|
|
180
|
+
}))).annotate({
|
|
181
|
+
identifier: "AddRedistributionRequest",
|
|
182
|
+
});
|
|
183
|
+
export const AddRedistributionResult = S.String;
|
|
184
|
+
export const AddRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
185
|
+
result: S.optional(AddRedistributionResult),
|
|
186
|
+
uuid: S.optional(S.String),
|
|
187
|
+
})).annotate({
|
|
188
|
+
identifier: "AddRedistributionResponse",
|
|
189
|
+
});
|
|
190
|
+
export const RoutemapItemAction = S.String;
|
|
191
|
+
export const RoutemapItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
192
|
+
uuid: S.optional(S.String),
|
|
193
|
+
enabled: S.String,
|
|
194
|
+
description: S.optional(S.String),
|
|
195
|
+
name: S.String,
|
|
196
|
+
action: RoutemapItemAction,
|
|
197
|
+
id: S.String,
|
|
198
|
+
match: S.optional(S.String),
|
|
199
|
+
match2: S.optional(S.String),
|
|
200
|
+
match3: S.optional(S.String),
|
|
201
|
+
set: S.optional(S.String),
|
|
202
|
+
})).annotate({ identifier: "RoutemapItem" });
|
|
203
|
+
export const AddRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
+
routemap: S.optional(RoutemapItem),
|
|
205
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/addRoutemap", code: 200 }))).annotate({
|
|
206
|
+
identifier: "AddRoutemapRequest",
|
|
207
|
+
});
|
|
208
|
+
export const AddRoutemapResult = S.String;
|
|
209
|
+
export const AddRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
210
|
+
result: S.optional(AddRoutemapResult),
|
|
211
|
+
uuid: S.optional(S.String),
|
|
212
|
+
})).annotate({
|
|
213
|
+
identifier: "AddRoutemapResponse",
|
|
214
|
+
});
|
|
215
|
+
export const DelAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
216
|
+
uuid: S.String.pipe(T.Label()),
|
|
217
|
+
}).pipe(T.Http({
|
|
218
|
+
method: "POST",
|
|
219
|
+
uri: "/api/quagga/bgp/delAspath/{uuid}",
|
|
220
|
+
code: 200,
|
|
221
|
+
}))).annotate({
|
|
222
|
+
identifier: "DelAspathRequest",
|
|
223
|
+
});
|
|
224
|
+
export const DelAspathResult = S.String;
|
|
225
|
+
export const DelAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
226
|
+
result: S.optional(DelAspathResult),
|
|
227
|
+
})).annotate({
|
|
228
|
+
identifier: "DelAspathResponse",
|
|
229
|
+
});
|
|
230
|
+
export const DelCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
231
|
+
uuid: S.String.pipe(T.Label()),
|
|
232
|
+
}).pipe(T.Http({
|
|
233
|
+
method: "POST",
|
|
234
|
+
uri: "/api/quagga/bgp/delCommunitylist/{uuid}",
|
|
235
|
+
code: 200,
|
|
236
|
+
}))).annotate({
|
|
237
|
+
identifier: "DelCommunitylistRequest",
|
|
238
|
+
});
|
|
239
|
+
export const DelCommunitylistResult = S.String;
|
|
240
|
+
export const DelCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
241
|
+
result: S.optional(DelCommunitylistResult),
|
|
242
|
+
})).annotate({
|
|
243
|
+
identifier: "DelCommunitylistResponse",
|
|
244
|
+
});
|
|
245
|
+
export const DelNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
246
|
+
uuid: S.String.pipe(T.Label()),
|
|
247
|
+
}).pipe(T.Http({
|
|
248
|
+
method: "POST",
|
|
249
|
+
uri: "/api/quagga/bgp/delNeighbor/{uuid}",
|
|
250
|
+
code: 200,
|
|
251
|
+
}))).annotate({
|
|
252
|
+
identifier: "DelNeighborRequest",
|
|
253
|
+
});
|
|
254
|
+
export const DelNeighborResult = S.String;
|
|
255
|
+
export const DelNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
256
|
+
result: S.optional(DelNeighborResult),
|
|
257
|
+
})).annotate({
|
|
258
|
+
identifier: "DelNeighborResponse",
|
|
259
|
+
});
|
|
260
|
+
export const DelPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
261
|
+
uuid: S.String.pipe(T.Label()),
|
|
262
|
+
}).pipe(T.Http({
|
|
263
|
+
method: "POST",
|
|
264
|
+
uri: "/api/quagga/bgp/delPeergroup/{uuid}",
|
|
265
|
+
code: 200,
|
|
266
|
+
}))).annotate({
|
|
267
|
+
identifier: "DelPeergroupRequest",
|
|
268
|
+
});
|
|
269
|
+
export const DelPeergroupResult = S.String;
|
|
270
|
+
export const DelPeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
271
|
+
result: S.optional(DelPeergroupResult),
|
|
272
|
+
})).annotate({
|
|
273
|
+
identifier: "DelPeergroupResponse",
|
|
274
|
+
});
|
|
275
|
+
export const DelPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
276
|
+
uuid: S.String.pipe(T.Label()),
|
|
277
|
+
}).pipe(T.Http({
|
|
278
|
+
method: "POST",
|
|
279
|
+
uri: "/api/quagga/bgp/delPrefixlist/{uuid}",
|
|
280
|
+
code: 200,
|
|
281
|
+
}))).annotate({
|
|
282
|
+
identifier: "DelPrefixlistRequest",
|
|
283
|
+
});
|
|
284
|
+
export const DelPrefixlistResult = S.String;
|
|
285
|
+
export const DelPrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
286
|
+
result: S.optional(DelPrefixlistResult),
|
|
287
|
+
})).annotate({
|
|
288
|
+
identifier: "DelPrefixlistResponse",
|
|
289
|
+
});
|
|
290
|
+
export const DelRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
291
|
+
uuid: S.String.pipe(T.Label()),
|
|
292
|
+
}).pipe(T.Http({
|
|
293
|
+
method: "POST",
|
|
294
|
+
uri: "/api/quagga/bgp/delRedistribution/{uuid}",
|
|
295
|
+
code: 200,
|
|
296
|
+
}))).annotate({
|
|
297
|
+
identifier: "DelRedistributionRequest",
|
|
298
|
+
});
|
|
299
|
+
export const DelRedistributionResult = S.String;
|
|
300
|
+
export const DelRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
301
|
+
result: S.optional(DelRedistributionResult),
|
|
302
|
+
})).annotate({
|
|
303
|
+
identifier: "DelRedistributionResponse",
|
|
304
|
+
});
|
|
305
|
+
export const DelRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
306
|
+
uuid: S.String.pipe(T.Label()),
|
|
307
|
+
}).pipe(T.Http({
|
|
308
|
+
method: "POST",
|
|
309
|
+
uri: "/api/quagga/bgp/delRoutemap/{uuid}",
|
|
310
|
+
code: 200,
|
|
311
|
+
}))).annotate({
|
|
312
|
+
identifier: "DelRoutemapRequest",
|
|
313
|
+
});
|
|
314
|
+
export const DelRoutemapResult = S.String;
|
|
315
|
+
export const DelRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
316
|
+
result: S.optional(DelRoutemapResult),
|
|
317
|
+
})).annotate({
|
|
318
|
+
identifier: "DelRoutemapResponse",
|
|
319
|
+
});
|
|
320
|
+
export const GetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/quagga/bgp/get", code: 200 }))).annotate({ identifier: "GetRequest" });
|
|
321
|
+
export const ModelBestpath = S.String;
|
|
322
|
+
export const ModelNeighborItemRemoteAsMode = S.String;
|
|
323
|
+
export const ModelNeighborItemRemoveprivateas = S.String;
|
|
324
|
+
export const ModelNeighborItemAllowasIn = S.String;
|
|
325
|
+
export const ModelNeighborItemAttributeunchanged = S.String;
|
|
326
|
+
export const ModelNeighborItemCapabilities = S.String;
|
|
327
|
+
export const ModelNeighborItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
|
+
uuid: S.optional(S.String),
|
|
329
|
+
enabled: S.String,
|
|
330
|
+
description: S.optional(S.String),
|
|
331
|
+
address: S.String,
|
|
332
|
+
remote_as_mode: S.optional(ModelNeighborItemRemoteAsMode),
|
|
333
|
+
remoteas: S.optional(S.String),
|
|
334
|
+
localas: S.optional(S.String),
|
|
335
|
+
password: S.optional(S.String),
|
|
336
|
+
weight: S.optional(S.String),
|
|
337
|
+
localip: S.optional(S.String),
|
|
338
|
+
updatesource: S.optional(S.String),
|
|
339
|
+
linklocalinterface: S.optional(S.String),
|
|
340
|
+
nexthopself: S.optional(S.String),
|
|
341
|
+
nexthopselfall: S.optional(S.String),
|
|
342
|
+
multihop: S.optional(S.String),
|
|
343
|
+
multiprotocol: S.optional(S.String),
|
|
344
|
+
rrclient: S.optional(S.String),
|
|
345
|
+
soft_reconfiguration_inbound: S.optional(S.String),
|
|
346
|
+
bfd: S.optional(S.String),
|
|
347
|
+
bfd_strict: S.optional(S.String),
|
|
348
|
+
keepalive: S.optional(S.String),
|
|
349
|
+
holddown: S.optional(S.String),
|
|
350
|
+
connecttimer: S.optional(S.String),
|
|
351
|
+
defaultoriginate: S.optional(S.String),
|
|
352
|
+
asoverride: S.optional(S.String),
|
|
353
|
+
removeprivateas: S.optional(ModelNeighborItemRemoveprivateas),
|
|
354
|
+
allowas_in: S.optional(ModelNeighborItemAllowasIn),
|
|
355
|
+
disable_connected_check: S.optional(S.String),
|
|
356
|
+
attributeunchanged: S.optional(ModelNeighborItemAttributeunchanged),
|
|
357
|
+
capabilities: S.optional(ModelNeighborItemCapabilities),
|
|
358
|
+
linkedPrefixlistIn: S.optional(S.String),
|
|
359
|
+
linkedPrefixlistOut: S.optional(S.String),
|
|
360
|
+
linkedRoutemapIn: S.optional(S.String),
|
|
361
|
+
linkedRoutemapOut: S.optional(S.String),
|
|
362
|
+
peergroup: S.optional(S.String),
|
|
363
|
+
})).annotate({
|
|
364
|
+
identifier: "ModelNeighborItem",
|
|
365
|
+
});
|
|
366
|
+
export const ModelNeighborItemMap = /*@__PURE__*/ S.Record(S.String, ModelNeighborItem);
|
|
367
|
+
export const ModelNeighbors = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
+
neighbor: S.optional(ModelNeighborItemMap),
|
|
369
|
+
})).annotate({ identifier: "ModelNeighbors" });
|
|
370
|
+
export const ModelAspathItemAction = S.String;
|
|
371
|
+
export const ModelAspathItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
|
+
uuid: S.optional(S.String),
|
|
373
|
+
enabled: S.String,
|
|
374
|
+
description: S.optional(S.String),
|
|
375
|
+
number: S.String,
|
|
376
|
+
action: ModelAspathItemAction,
|
|
377
|
+
as: S.String,
|
|
378
|
+
})).annotate({
|
|
379
|
+
identifier: "ModelAspathItem",
|
|
380
|
+
});
|
|
381
|
+
export const ModelAspathItemMap = /*@__PURE__*/ S.Record(S.String, ModelAspathItem);
|
|
382
|
+
export const ModelAspaths = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
aspath: S.optional(ModelAspathItemMap),
|
|
384
|
+
})).annotate({ identifier: "ModelAspaths" });
|
|
385
|
+
export const ModelPrefixlistItemVersion = S.String;
|
|
386
|
+
export const ModelPrefixlistItemAction = S.String;
|
|
387
|
+
export const ModelPrefixlistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
+
uuid: S.optional(S.String),
|
|
389
|
+
enabled: S.String,
|
|
390
|
+
description: S.optional(S.String),
|
|
391
|
+
name: S.String,
|
|
392
|
+
version: ModelPrefixlistItemVersion,
|
|
393
|
+
seqnumber: S.String,
|
|
394
|
+
action: ModelPrefixlistItemAction,
|
|
395
|
+
network: S.String,
|
|
396
|
+
})).annotate({
|
|
397
|
+
identifier: "ModelPrefixlistItem",
|
|
398
|
+
});
|
|
399
|
+
export const ModelPrefixlistItemMap = /*@__PURE__*/ S.Record(S.String, ModelPrefixlistItem);
|
|
400
|
+
export const ModelPrefixlists = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
+
prefixlist: S.optional(ModelPrefixlistItemMap),
|
|
402
|
+
})).annotate({
|
|
403
|
+
identifier: "ModelPrefixlists",
|
|
404
|
+
});
|
|
405
|
+
export const ModelCommunitylistItemAction = S.String;
|
|
406
|
+
export const ModelCommunitylistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
|
+
uuid: S.optional(S.String),
|
|
408
|
+
enabled: S.String,
|
|
409
|
+
description: S.optional(S.String),
|
|
410
|
+
number: S.String,
|
|
411
|
+
seqnumber: S.String,
|
|
412
|
+
action: ModelCommunitylistItemAction,
|
|
413
|
+
community: S.String,
|
|
414
|
+
})).annotate({
|
|
415
|
+
identifier: "ModelCommunitylistItem",
|
|
416
|
+
});
|
|
417
|
+
export const ModelCommunitylistItemMap = /*@__PURE__*/ S.Record(S.String, ModelCommunitylistItem);
|
|
418
|
+
export const ModelCommunitylists = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
419
|
+
communitylist: S.optional(ModelCommunitylistItemMap),
|
|
420
|
+
})).annotate({
|
|
421
|
+
identifier: "ModelCommunitylists",
|
|
422
|
+
});
|
|
423
|
+
export const ModelRoutemapItemAction = S.String;
|
|
424
|
+
export const ModelRoutemapItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
425
|
+
uuid: S.optional(S.String),
|
|
426
|
+
enabled: S.String,
|
|
427
|
+
description: S.optional(S.String),
|
|
428
|
+
name: S.String,
|
|
429
|
+
action: ModelRoutemapItemAction,
|
|
430
|
+
id: S.String,
|
|
431
|
+
match: S.optional(S.String),
|
|
432
|
+
match2: S.optional(S.String),
|
|
433
|
+
match3: S.optional(S.String),
|
|
434
|
+
set: S.optional(S.String),
|
|
435
|
+
})).annotate({
|
|
436
|
+
identifier: "ModelRoutemapItem",
|
|
437
|
+
});
|
|
438
|
+
export const ModelRoutemapItemMap = /*@__PURE__*/ S.Record(S.String, ModelRoutemapItem);
|
|
439
|
+
export const ModelRoutemaps = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
440
|
+
routemap: S.optional(ModelRoutemapItemMap),
|
|
441
|
+
})).annotate({ identifier: "ModelRoutemaps" });
|
|
442
|
+
export const ModelPeergroupItemRemoteAsMode = S.String;
|
|
443
|
+
export const ModelPeergroupItemFamily = S.String;
|
|
444
|
+
export const ModelPeergroupItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
445
|
+
uuid: S.optional(S.String),
|
|
446
|
+
enabled: S.String,
|
|
447
|
+
name: S.String,
|
|
448
|
+
remote_as_mode: S.optional(ModelPeergroupItemRemoteAsMode),
|
|
449
|
+
remoteas: S.optional(S.String),
|
|
450
|
+
family: ModelPeergroupItemFamily,
|
|
451
|
+
listenranges: S.optional(S.String),
|
|
452
|
+
updatesource: S.optional(S.String),
|
|
453
|
+
nexthopself: S.optional(S.String),
|
|
454
|
+
defaultoriginate: S.optional(S.String),
|
|
455
|
+
linkedPrefixlistIn: S.optional(S.String),
|
|
456
|
+
linkedPrefixlistOut: S.optional(S.String),
|
|
457
|
+
linkedRoutemapIn: S.optional(S.String),
|
|
458
|
+
linkedRoutemapOut: S.optional(S.String),
|
|
459
|
+
})).annotate({
|
|
460
|
+
identifier: "ModelPeergroupItem",
|
|
461
|
+
});
|
|
462
|
+
export const ModelPeergroupItemMap = /*@__PURE__*/ S.Record(S.String, ModelPeergroupItem);
|
|
463
|
+
export const ModelPeergroups = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
464
|
+
peergroup: S.optional(ModelPeergroupItemMap),
|
|
465
|
+
})).annotate({
|
|
466
|
+
identifier: "ModelPeergroups",
|
|
467
|
+
});
|
|
468
|
+
export const ModelRedistributionItemRedistribute = S.String;
|
|
469
|
+
export const ModelRedistributionItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
470
|
+
uuid: S.optional(S.String),
|
|
471
|
+
enabled: S.String,
|
|
472
|
+
description: S.optional(S.String),
|
|
473
|
+
redistribute: ModelRedistributionItemRedistribute,
|
|
474
|
+
linkedRoutemap: S.optional(S.String),
|
|
475
|
+
})).annotate({
|
|
476
|
+
identifier: "ModelRedistributionItem",
|
|
477
|
+
});
|
|
478
|
+
export const ModelRedistributionItemMap = /*@__PURE__*/ S.Record(S.String, ModelRedistributionItem);
|
|
479
|
+
export const ModelRedistributions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
480
|
+
redistribution: S.optional(ModelRedistributionItemMap),
|
|
481
|
+
})).annotate({
|
|
482
|
+
identifier: "ModelRedistributions",
|
|
483
|
+
});
|
|
484
|
+
export const Model = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
485
|
+
enabled: S.String,
|
|
486
|
+
asnumber: S.String,
|
|
487
|
+
distance: S.optional(S.String),
|
|
488
|
+
routerid: S.optional(S.String),
|
|
489
|
+
graceful: S.String,
|
|
490
|
+
networkimportcheck: S.String,
|
|
491
|
+
enforce_first_as: S.String,
|
|
492
|
+
logneighborchanges: S.String,
|
|
493
|
+
networks: S.optional(S.String),
|
|
494
|
+
bestpath: S.optional(ModelBestpath),
|
|
495
|
+
maximumpaths: S.optional(S.String),
|
|
496
|
+
maximumpathsibgp: S.optional(S.String),
|
|
497
|
+
neighbors: S.optional(ModelNeighbors),
|
|
498
|
+
aspaths: S.optional(ModelAspaths),
|
|
499
|
+
prefixlists: S.optional(ModelPrefixlists),
|
|
500
|
+
communitylists: S.optional(ModelCommunitylists),
|
|
501
|
+
routemaps: S.optional(ModelRoutemaps),
|
|
502
|
+
peergroups: S.optional(ModelPeergroups),
|
|
503
|
+
redistributions: S.optional(ModelRedistributions),
|
|
504
|
+
})).annotate({ identifier: "Model" });
|
|
505
|
+
export const GetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
506
|
+
bgp: S.optional(Model),
|
|
507
|
+
})).annotate({ identifier: "GetResponse" });
|
|
508
|
+
export const GetAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/quagga/bgp/getAspath", code: 200 }))).annotate({
|
|
509
|
+
identifier: "GetAspathRequest",
|
|
510
|
+
});
|
|
511
|
+
export const GetAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
512
|
+
aspath: S.optional(AspathItem),
|
|
513
|
+
})).annotate({
|
|
514
|
+
identifier: "GetAspathResponse",
|
|
515
|
+
});
|
|
516
|
+
export const GetCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
517
|
+
method: "GET",
|
|
518
|
+
uri: "/api/quagga/bgp/getCommunitylist",
|
|
519
|
+
code: 200,
|
|
520
|
+
}))).annotate({
|
|
521
|
+
identifier: "GetCommunitylistRequest",
|
|
522
|
+
});
|
|
523
|
+
export const GetCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
524
|
+
communitylist: S.optional(CommunitylistItem),
|
|
525
|
+
})).annotate({
|
|
526
|
+
identifier: "GetCommunitylistResponse",
|
|
527
|
+
});
|
|
528
|
+
export const GetNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/quagga/bgp/getNeighbor", code: 200 }))).annotate({
|
|
529
|
+
identifier: "GetNeighborRequest",
|
|
530
|
+
});
|
|
531
|
+
export const GetNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
532
|
+
neighbor: S.optional(NeighborItem),
|
|
533
|
+
})).annotate({
|
|
534
|
+
identifier: "GetNeighborResponse",
|
|
535
|
+
});
|
|
536
|
+
export const GetPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/quagga/bgp/getPeergroup", code: 200 }))).annotate({
|
|
537
|
+
identifier: "GetPeergroupRequest",
|
|
538
|
+
});
|
|
539
|
+
export const GetPeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
540
|
+
peergroup: S.optional(PeergroupItem),
|
|
541
|
+
})).annotate({
|
|
542
|
+
identifier: "GetPeergroupResponse",
|
|
543
|
+
});
|
|
544
|
+
export const GetPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/quagga/bgp/getPrefixlist", code: 200 }))).annotate({
|
|
545
|
+
identifier: "GetPrefixlistRequest",
|
|
546
|
+
});
|
|
547
|
+
export const GetPrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
548
|
+
prefixlist: S.optional(PrefixlistItem),
|
|
549
|
+
})).annotate({
|
|
550
|
+
identifier: "GetPrefixlistResponse",
|
|
551
|
+
});
|
|
552
|
+
export const GetRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
553
|
+
method: "GET",
|
|
554
|
+
uri: "/api/quagga/bgp/getRedistribution",
|
|
555
|
+
code: 200,
|
|
556
|
+
}))).annotate({
|
|
557
|
+
identifier: "GetRedistributionRequest",
|
|
558
|
+
});
|
|
559
|
+
export const GetRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
|
+
redistribution: S.optional(RedistributionItem),
|
|
561
|
+
})).annotate({
|
|
562
|
+
identifier: "GetRedistributionResponse",
|
|
563
|
+
});
|
|
564
|
+
export const GetRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/api/quagga/bgp/getRoutemap", code: 200 }))).annotate({
|
|
565
|
+
identifier: "GetRoutemapRequest",
|
|
566
|
+
});
|
|
567
|
+
export const GetRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
568
|
+
routemap: S.optional(RoutemapItem),
|
|
569
|
+
})).annotate({
|
|
570
|
+
identifier: "GetRoutemapResponse",
|
|
571
|
+
});
|
|
572
|
+
export const SearchAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/searchAspath", code: 200 }))).annotate({
|
|
573
|
+
identifier: "SearchAspathRequest",
|
|
574
|
+
});
|
|
575
|
+
export const AspathList = /*@__PURE__*/ S.Array(AspathItem);
|
|
576
|
+
export const SearchAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
577
|
+
total: S.optional(S.Number),
|
|
578
|
+
rowCount: S.optional(S.Number),
|
|
579
|
+
current: S.optional(S.Number),
|
|
580
|
+
rows: S.optional(AspathList),
|
|
581
|
+
})).annotate({
|
|
582
|
+
identifier: "SearchAspathResponse",
|
|
583
|
+
});
|
|
584
|
+
export const SearchCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
585
|
+
method: "POST",
|
|
586
|
+
uri: "/api/quagga/bgp/searchCommunitylist",
|
|
587
|
+
code: 200,
|
|
588
|
+
}))).annotate({
|
|
589
|
+
identifier: "SearchCommunitylistRequest",
|
|
590
|
+
});
|
|
591
|
+
export const CommunitylistList = /*@__PURE__*/ S.Array(CommunitylistItem);
|
|
592
|
+
export const SearchCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
593
|
+
total: S.optional(S.Number),
|
|
594
|
+
rowCount: S.optional(S.Number),
|
|
595
|
+
current: S.optional(S.Number),
|
|
596
|
+
rows: S.optional(CommunitylistList),
|
|
597
|
+
})).annotate({
|
|
598
|
+
identifier: "SearchCommunitylistResponse",
|
|
599
|
+
});
|
|
600
|
+
export const SearchNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
601
|
+
method: "POST",
|
|
602
|
+
uri: "/api/quagga/bgp/searchNeighbor",
|
|
603
|
+
code: 200,
|
|
604
|
+
}))).annotate({
|
|
605
|
+
identifier: "SearchNeighborRequest",
|
|
606
|
+
});
|
|
607
|
+
export const NeighborList = /*@__PURE__*/ S.Array(NeighborItem);
|
|
608
|
+
export const SearchNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
609
|
+
total: S.optional(S.Number),
|
|
610
|
+
rowCount: S.optional(S.Number),
|
|
611
|
+
current: S.optional(S.Number),
|
|
612
|
+
rows: S.optional(NeighborList),
|
|
613
|
+
})).annotate({
|
|
614
|
+
identifier: "SearchNeighborResponse",
|
|
615
|
+
});
|
|
616
|
+
export const SearchPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
617
|
+
method: "POST",
|
|
618
|
+
uri: "/api/quagga/bgp/searchPeergroup",
|
|
619
|
+
code: 200,
|
|
620
|
+
}))).annotate({
|
|
621
|
+
identifier: "SearchPeergroupRequest",
|
|
622
|
+
});
|
|
623
|
+
export const PeergroupList = /*@__PURE__*/ S.Array(PeergroupItem);
|
|
624
|
+
export const SearchPeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
625
|
+
total: S.optional(S.Number),
|
|
626
|
+
rowCount: S.optional(S.Number),
|
|
627
|
+
current: S.optional(S.Number),
|
|
628
|
+
rows: S.optional(PeergroupList),
|
|
629
|
+
})).annotate({
|
|
630
|
+
identifier: "SearchPeergroupResponse",
|
|
631
|
+
});
|
|
632
|
+
export const SearchPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
633
|
+
method: "POST",
|
|
634
|
+
uri: "/api/quagga/bgp/searchPrefixlist",
|
|
635
|
+
code: 200,
|
|
636
|
+
}))).annotate({
|
|
637
|
+
identifier: "SearchPrefixlistRequest",
|
|
638
|
+
});
|
|
639
|
+
export const PrefixlistList = /*@__PURE__*/ S.Array(PrefixlistItem);
|
|
640
|
+
export const SearchPrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
641
|
+
total: S.optional(S.Number),
|
|
642
|
+
rowCount: S.optional(S.Number),
|
|
643
|
+
current: S.optional(S.Number),
|
|
644
|
+
rows: S.optional(PrefixlistList),
|
|
645
|
+
})).annotate({
|
|
646
|
+
identifier: "SearchPrefixlistResponse",
|
|
647
|
+
});
|
|
648
|
+
export const SearchRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
649
|
+
method: "POST",
|
|
650
|
+
uri: "/api/quagga/bgp/searchRedistribution",
|
|
651
|
+
code: 200,
|
|
652
|
+
}))).annotate({
|
|
653
|
+
identifier: "SearchRedistributionRequest",
|
|
654
|
+
});
|
|
655
|
+
export const RedistributionList = /*@__PURE__*/ S.Array(RedistributionItem);
|
|
656
|
+
export const SearchRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
657
|
+
total: S.optional(S.Number),
|
|
658
|
+
rowCount: S.optional(S.Number),
|
|
659
|
+
current: S.optional(S.Number),
|
|
660
|
+
rows: S.optional(RedistributionList),
|
|
661
|
+
})).annotate({
|
|
662
|
+
identifier: "SearchRedistributionResponse",
|
|
663
|
+
});
|
|
664
|
+
export const SearchRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({
|
|
665
|
+
method: "POST",
|
|
666
|
+
uri: "/api/quagga/bgp/searchRoutemap",
|
|
667
|
+
code: 200,
|
|
668
|
+
}))).annotate({
|
|
669
|
+
identifier: "SearchRoutemapRequest",
|
|
670
|
+
});
|
|
671
|
+
export const RoutemapList = /*@__PURE__*/ S.Array(RoutemapItem);
|
|
672
|
+
export const SearchRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
673
|
+
total: S.optional(S.Number),
|
|
674
|
+
rowCount: S.optional(S.Number),
|
|
675
|
+
current: S.optional(S.Number),
|
|
676
|
+
rows: S.optional(RoutemapList),
|
|
677
|
+
})).annotate({
|
|
678
|
+
identifier: "SearchRoutemapResponse",
|
|
679
|
+
});
|
|
680
|
+
export const SetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
681
|
+
bgp: S.optional(Model),
|
|
682
|
+
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/set", code: 200 }))).annotate({ identifier: "SetRequest" });
|
|
683
|
+
export const SetResult = S.String;
|
|
684
|
+
export const SetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
685
|
+
result: S.optional(SetResult),
|
|
686
|
+
})).annotate({ identifier: "SetResponse" });
|
|
687
|
+
export const SetAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
688
|
+
uuid: S.String.pipe(T.Label()),
|
|
689
|
+
aspath: S.optional(AspathItem),
|
|
690
|
+
}).pipe(T.Http({
|
|
691
|
+
method: "POST",
|
|
692
|
+
uri: "/api/quagga/bgp/setAspath/{uuid}",
|
|
693
|
+
code: 200,
|
|
694
|
+
}))).annotate({
|
|
695
|
+
identifier: "SetAspathRequest",
|
|
696
|
+
});
|
|
697
|
+
export const SetAspathResult = S.String;
|
|
698
|
+
export const SetAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
699
|
+
result: S.optional(SetAspathResult),
|
|
700
|
+
})).annotate({
|
|
701
|
+
identifier: "SetAspathResponse",
|
|
702
|
+
});
|
|
703
|
+
export const SetCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
704
|
+
uuid: S.String.pipe(T.Label()),
|
|
705
|
+
communitylist: S.optional(CommunitylistItem),
|
|
706
|
+
}).pipe(T.Http({
|
|
707
|
+
method: "POST",
|
|
708
|
+
uri: "/api/quagga/bgp/setCommunitylist/{uuid}",
|
|
709
|
+
code: 200,
|
|
710
|
+
}))).annotate({
|
|
711
|
+
identifier: "SetCommunitylistRequest",
|
|
712
|
+
});
|
|
713
|
+
export const SetCommunitylistResult = S.String;
|
|
714
|
+
export const SetCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
715
|
+
result: S.optional(SetCommunitylistResult),
|
|
716
|
+
})).annotate({
|
|
717
|
+
identifier: "SetCommunitylistResponse",
|
|
718
|
+
});
|
|
719
|
+
export const SetNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
720
|
+
uuid: S.String.pipe(T.Label()),
|
|
721
|
+
neighbor: S.optional(NeighborItem),
|
|
722
|
+
}).pipe(T.Http({
|
|
723
|
+
method: "POST",
|
|
724
|
+
uri: "/api/quagga/bgp/setNeighbor/{uuid}",
|
|
725
|
+
code: 200,
|
|
726
|
+
}))).annotate({
|
|
727
|
+
identifier: "SetNeighborRequest",
|
|
728
|
+
});
|
|
729
|
+
export const SetNeighborResult = S.String;
|
|
730
|
+
export const SetNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
731
|
+
result: S.optional(SetNeighborResult),
|
|
732
|
+
})).annotate({
|
|
733
|
+
identifier: "SetNeighborResponse",
|
|
734
|
+
});
|
|
735
|
+
export const SetPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
736
|
+
uuid: S.String.pipe(T.Label()),
|
|
737
|
+
peergroup: S.optional(PeergroupItem),
|
|
738
|
+
}).pipe(T.Http({
|
|
739
|
+
method: "POST",
|
|
740
|
+
uri: "/api/quagga/bgp/setPeergroup/{uuid}",
|
|
741
|
+
code: 200,
|
|
742
|
+
}))).annotate({
|
|
743
|
+
identifier: "SetPeergroupRequest",
|
|
744
|
+
});
|
|
745
|
+
export const SetPeergroupResult = S.String;
|
|
746
|
+
export const SetPeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
747
|
+
result: S.optional(SetPeergroupResult),
|
|
748
|
+
})).annotate({
|
|
749
|
+
identifier: "SetPeergroupResponse",
|
|
750
|
+
});
|
|
751
|
+
export const SetPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
752
|
+
uuid: S.String.pipe(T.Label()),
|
|
753
|
+
prefixlist: S.optional(PrefixlistItem),
|
|
754
|
+
}).pipe(T.Http({
|
|
755
|
+
method: "POST",
|
|
756
|
+
uri: "/api/quagga/bgp/setPrefixlist/{uuid}",
|
|
757
|
+
code: 200,
|
|
758
|
+
}))).annotate({
|
|
759
|
+
identifier: "SetPrefixlistRequest",
|
|
760
|
+
});
|
|
761
|
+
export const SetPrefixlistResult = S.String;
|
|
762
|
+
export const SetPrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
763
|
+
result: S.optional(SetPrefixlistResult),
|
|
764
|
+
})).annotate({
|
|
765
|
+
identifier: "SetPrefixlistResponse",
|
|
766
|
+
});
|
|
767
|
+
export const SetRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
768
|
+
uuid: S.String.pipe(T.Label()),
|
|
769
|
+
redistribution: S.optional(RedistributionItem),
|
|
770
|
+
}).pipe(T.Http({
|
|
771
|
+
method: "POST",
|
|
772
|
+
uri: "/api/quagga/bgp/setRedistribution/{uuid}",
|
|
773
|
+
code: 200,
|
|
774
|
+
}))).annotate({
|
|
775
|
+
identifier: "SetRedistributionRequest",
|
|
776
|
+
});
|
|
777
|
+
export const SetRedistributionResult = S.String;
|
|
778
|
+
export const SetRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
779
|
+
result: S.optional(SetRedistributionResult),
|
|
780
|
+
})).annotate({
|
|
781
|
+
identifier: "SetRedistributionResponse",
|
|
782
|
+
});
|
|
783
|
+
export const SetRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
784
|
+
uuid: S.String.pipe(T.Label()),
|
|
785
|
+
routemap: S.optional(RoutemapItem),
|
|
786
|
+
}).pipe(T.Http({
|
|
787
|
+
method: "POST",
|
|
788
|
+
uri: "/api/quagga/bgp/setRoutemap/{uuid}",
|
|
789
|
+
code: 200,
|
|
790
|
+
}))).annotate({
|
|
791
|
+
identifier: "SetRoutemapRequest",
|
|
792
|
+
});
|
|
793
|
+
export const SetRoutemapResult = S.String;
|
|
794
|
+
export const SetRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
795
|
+
result: S.optional(SetRoutemapResult),
|
|
796
|
+
})).annotate({
|
|
797
|
+
identifier: "SetRoutemapResponse",
|
|
798
|
+
});
|
|
799
|
+
export const ToggleAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
800
|
+
uuid: S.String.pipe(T.Label()),
|
|
801
|
+
}).pipe(T.Http({
|
|
802
|
+
method: "POST",
|
|
803
|
+
uri: "/api/quagga/bgp/toggleAspath/{uuid}",
|
|
804
|
+
code: 200,
|
|
805
|
+
}))).annotate({
|
|
806
|
+
identifier: "ToggleAspathRequest",
|
|
807
|
+
});
|
|
808
|
+
export const ToggleAspathResult = S.String;
|
|
809
|
+
export const ToggleAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
810
|
+
result: S.optional(ToggleAspathResult),
|
|
811
|
+
changed: S.optional(S.Boolean),
|
|
812
|
+
})).annotate({
|
|
813
|
+
identifier: "ToggleAspathResponse",
|
|
814
|
+
});
|
|
815
|
+
export const ToggleCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
816
|
+
uuid: S.String.pipe(T.Label()),
|
|
817
|
+
}).pipe(T.Http({
|
|
818
|
+
method: "POST",
|
|
819
|
+
uri: "/api/quagga/bgp/toggleCommunitylist/{uuid}",
|
|
820
|
+
code: 200,
|
|
821
|
+
}))).annotate({
|
|
822
|
+
identifier: "ToggleCommunitylistRequest",
|
|
823
|
+
});
|
|
824
|
+
export const ToggleCommunitylistResult = S.String;
|
|
825
|
+
export const ToggleCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
826
|
+
result: S.optional(ToggleCommunitylistResult),
|
|
827
|
+
changed: S.optional(S.Boolean),
|
|
828
|
+
})).annotate({
|
|
829
|
+
identifier: "ToggleCommunitylistResponse",
|
|
830
|
+
});
|
|
831
|
+
export const ToggleNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
832
|
+
uuid: S.String.pipe(T.Label()),
|
|
833
|
+
}).pipe(T.Http({
|
|
834
|
+
method: "POST",
|
|
835
|
+
uri: "/api/quagga/bgp/toggleNeighbor/{uuid}",
|
|
836
|
+
code: 200,
|
|
837
|
+
}))).annotate({
|
|
838
|
+
identifier: "ToggleNeighborRequest",
|
|
839
|
+
});
|
|
840
|
+
export const ToggleNeighborResult = S.String;
|
|
841
|
+
export const ToggleNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
842
|
+
result: S.optional(ToggleNeighborResult),
|
|
843
|
+
changed: S.optional(S.Boolean),
|
|
844
|
+
})).annotate({
|
|
845
|
+
identifier: "ToggleNeighborResponse",
|
|
846
|
+
});
|
|
847
|
+
export const TogglePeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
848
|
+
uuid: S.String.pipe(T.Label()),
|
|
849
|
+
}).pipe(T.Http({
|
|
850
|
+
method: "POST",
|
|
851
|
+
uri: "/api/quagga/bgp/togglePeergroup/{uuid}",
|
|
852
|
+
code: 200,
|
|
853
|
+
}))).annotate({
|
|
854
|
+
identifier: "TogglePeergroupRequest",
|
|
855
|
+
});
|
|
856
|
+
export const TogglePeergroupResult = S.String;
|
|
857
|
+
export const TogglePeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
858
|
+
result: S.optional(TogglePeergroupResult),
|
|
859
|
+
changed: S.optional(S.Boolean),
|
|
860
|
+
})).annotate({
|
|
861
|
+
identifier: "TogglePeergroupResponse",
|
|
862
|
+
});
|
|
863
|
+
export const TogglePrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
864
|
+
uuid: S.String.pipe(T.Label()),
|
|
865
|
+
}).pipe(T.Http({
|
|
866
|
+
method: "POST",
|
|
867
|
+
uri: "/api/quagga/bgp/togglePrefixlist/{uuid}",
|
|
868
|
+
code: 200,
|
|
869
|
+
}))).annotate({
|
|
870
|
+
identifier: "TogglePrefixlistRequest",
|
|
871
|
+
});
|
|
872
|
+
export const TogglePrefixlistResult = S.String;
|
|
873
|
+
export const TogglePrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
874
|
+
result: S.optional(TogglePrefixlistResult),
|
|
875
|
+
changed: S.optional(S.Boolean),
|
|
876
|
+
})).annotate({
|
|
877
|
+
identifier: "TogglePrefixlistResponse",
|
|
878
|
+
});
|
|
879
|
+
export const ToggleRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
880
|
+
uuid: S.String.pipe(T.Label()),
|
|
881
|
+
}).pipe(T.Http({
|
|
882
|
+
method: "POST",
|
|
883
|
+
uri: "/api/quagga/bgp/toggleRedistribution/{uuid}",
|
|
884
|
+
code: 200,
|
|
885
|
+
}))).annotate({
|
|
886
|
+
identifier: "ToggleRedistributionRequest",
|
|
887
|
+
});
|
|
888
|
+
export const ToggleRedistributionResult = S.String;
|
|
889
|
+
export const ToggleRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
890
|
+
result: S.optional(ToggleRedistributionResult),
|
|
891
|
+
changed: S.optional(S.Boolean),
|
|
892
|
+
})).annotate({
|
|
893
|
+
identifier: "ToggleRedistributionResponse",
|
|
894
|
+
});
|
|
895
|
+
export const ToggleRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
896
|
+
uuid: S.String.pipe(T.Label()),
|
|
897
|
+
}).pipe(T.Http({
|
|
898
|
+
method: "POST",
|
|
899
|
+
uri: "/api/quagga/bgp/toggleRoutemap/{uuid}",
|
|
900
|
+
code: 200,
|
|
901
|
+
}))).annotate({
|
|
902
|
+
identifier: "ToggleRoutemapRequest",
|
|
903
|
+
});
|
|
904
|
+
export const ToggleRoutemapResult = S.String;
|
|
905
|
+
export const ToggleRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
906
|
+
result: S.optional(ToggleRoutemapResult),
|
|
907
|
+
changed: S.optional(S.Boolean),
|
|
908
|
+
})).annotate({
|
|
909
|
+
identifier: "ToggleRoutemapResponse",
|
|
910
|
+
});
|
|
911
|
+
/** Add a new aspaths.aspath item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
912
|
+
export const addAspath = /*@__PURE__*/ API.make(() => ({
|
|
913
|
+
input: AddAspathRequest,
|
|
914
|
+
output: AddAspathResponse,
|
|
915
|
+
errors: [],
|
|
916
|
+
protocol: OpnsenseProtocol,
|
|
917
|
+
retry: Retry.Retry,
|
|
918
|
+
}));
|
|
919
|
+
/** Add a new communitylists.communitylist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
920
|
+
export const addCommunitylist = /*@__PURE__*/ API.make(() => ({
|
|
921
|
+
input: AddCommunitylistRequest,
|
|
922
|
+
output: AddCommunitylistResponse,
|
|
923
|
+
errors: [],
|
|
924
|
+
protocol: OpnsenseProtocol,
|
|
925
|
+
retry: Retry.Retry,
|
|
926
|
+
}));
|
|
927
|
+
/** Add a new neighbors.neighbor item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
928
|
+
export const addNeighbor = /*@__PURE__*/ API.make(() => ({
|
|
929
|
+
input: AddNeighborRequest,
|
|
930
|
+
output: AddNeighborResponse,
|
|
931
|
+
errors: [],
|
|
932
|
+
protocol: OpnsenseProtocol,
|
|
933
|
+
retry: Retry.Retry,
|
|
934
|
+
}));
|
|
935
|
+
/** Add a new peergroups.peergroup item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
936
|
+
export const addPeergroup = /*@__PURE__*/ API.make(() => ({
|
|
937
|
+
input: AddPeergroupRequest,
|
|
938
|
+
output: AddPeergroupResponse,
|
|
939
|
+
errors: [],
|
|
940
|
+
protocol: OpnsenseProtocol,
|
|
941
|
+
retry: Retry.Retry,
|
|
942
|
+
}));
|
|
943
|
+
/** Add a new prefixlists.prefixlist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
944
|
+
export const addPrefixlist = /*@__PURE__*/ API.make(() => ({
|
|
945
|
+
input: AddPrefixlistRequest,
|
|
946
|
+
output: AddPrefixlistResponse,
|
|
947
|
+
errors: [],
|
|
948
|
+
protocol: OpnsenseProtocol,
|
|
949
|
+
retry: Retry.Retry,
|
|
950
|
+
}));
|
|
951
|
+
/** Add a new redistributions.redistribution item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
952
|
+
export const addRedistribution = /*@__PURE__*/ API.make(() => ({
|
|
953
|
+
input: AddRedistributionRequest,
|
|
954
|
+
output: AddRedistributionResponse,
|
|
955
|
+
errors: [],
|
|
956
|
+
protocol: OpnsenseProtocol,
|
|
957
|
+
retry: Retry.Retry,
|
|
958
|
+
}));
|
|
959
|
+
/** Add a new routemaps.routemap item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
960
|
+
export const addRoutemap = /*@__PURE__*/ API.make(() => ({
|
|
961
|
+
input: AddRoutemapRequest,
|
|
962
|
+
output: AddRoutemapResponse,
|
|
963
|
+
errors: [],
|
|
964
|
+
protocol: OpnsenseProtocol,
|
|
965
|
+
retry: Retry.Retry,
|
|
966
|
+
}));
|
|
967
|
+
/** Delete a aspaths.aspath item by uuid. */
|
|
968
|
+
export const delAspath = /*@__PURE__*/ API.make(() => ({
|
|
969
|
+
input: DelAspathRequest,
|
|
970
|
+
output: DelAspathResponse,
|
|
971
|
+
errors: [],
|
|
972
|
+
protocol: OpnsenseProtocol,
|
|
973
|
+
retry: Retry.Retry,
|
|
974
|
+
}));
|
|
975
|
+
/** Delete a communitylists.communitylist item by uuid. */
|
|
976
|
+
export const delCommunitylist = /*@__PURE__*/ API.make(() => ({
|
|
977
|
+
input: DelCommunitylistRequest,
|
|
978
|
+
output: DelCommunitylistResponse,
|
|
979
|
+
errors: [],
|
|
980
|
+
protocol: OpnsenseProtocol,
|
|
981
|
+
retry: Retry.Retry,
|
|
982
|
+
}));
|
|
983
|
+
/** Delete a neighbors.neighbor item by uuid. */
|
|
984
|
+
export const delNeighbor = /*@__PURE__*/ API.make(() => ({
|
|
985
|
+
input: DelNeighborRequest,
|
|
986
|
+
output: DelNeighborResponse,
|
|
987
|
+
errors: [],
|
|
988
|
+
protocol: OpnsenseProtocol,
|
|
989
|
+
retry: Retry.Retry,
|
|
990
|
+
}));
|
|
991
|
+
/** Delete a peergroups.peergroup item by uuid. */
|
|
992
|
+
export const delPeergroup = /*@__PURE__*/ API.make(() => ({
|
|
993
|
+
input: DelPeergroupRequest,
|
|
994
|
+
output: DelPeergroupResponse,
|
|
995
|
+
errors: [],
|
|
996
|
+
protocol: OpnsenseProtocol,
|
|
997
|
+
retry: Retry.Retry,
|
|
998
|
+
}));
|
|
999
|
+
/** Delete a prefixlists.prefixlist item by uuid. */
|
|
1000
|
+
export const delPrefixlist = /*@__PURE__*/ API.make(() => ({
|
|
1001
|
+
input: DelPrefixlistRequest,
|
|
1002
|
+
output: DelPrefixlistResponse,
|
|
1003
|
+
errors: [],
|
|
1004
|
+
protocol: OpnsenseProtocol,
|
|
1005
|
+
retry: Retry.Retry,
|
|
1006
|
+
}));
|
|
1007
|
+
/** Delete a redistributions.redistribution item by uuid. */
|
|
1008
|
+
export const delRedistribution = /*@__PURE__*/ API.make(() => ({
|
|
1009
|
+
input: DelRedistributionRequest,
|
|
1010
|
+
output: DelRedistributionResponse,
|
|
1011
|
+
errors: [],
|
|
1012
|
+
protocol: OpnsenseProtocol,
|
|
1013
|
+
retry: Retry.Retry,
|
|
1014
|
+
}));
|
|
1015
|
+
/** Delete a routemaps.routemap item by uuid. */
|
|
1016
|
+
export const delRoutemap = /*@__PURE__*/ API.make(() => ({
|
|
1017
|
+
input: DelRoutemapRequest,
|
|
1018
|
+
output: DelRoutemapResponse,
|
|
1019
|
+
errors: [],
|
|
1020
|
+
protocol: OpnsenseProtocol,
|
|
1021
|
+
retry: Retry.Retry,
|
|
1022
|
+
}));
|
|
1023
|
+
/** Fetch the entire model tree (every section and array collection). */
|
|
1024
|
+
export const get = /*@__PURE__*/ API.make(() => ({
|
|
1025
|
+
input: GetRequest,
|
|
1026
|
+
output: GetResponse,
|
|
1027
|
+
errors: [],
|
|
1028
|
+
protocol: OpnsenseProtocol,
|
|
1029
|
+
retry: Retry.Retry,
|
|
1030
|
+
}));
|
|
1031
|
+
/** Fetch one aspaths.aspath item by uuid. */
|
|
1032
|
+
export const getAspath = /*@__PURE__*/ API.make(() => ({
|
|
1033
|
+
input: GetAspathRequest,
|
|
1034
|
+
output: GetAspathResponse,
|
|
1035
|
+
errors: [],
|
|
1036
|
+
protocol: OpnsenseProtocol,
|
|
1037
|
+
retry: Retry.Retry,
|
|
1038
|
+
}));
|
|
1039
|
+
/** Fetch one communitylists.communitylist item by uuid. */
|
|
1040
|
+
export const getCommunitylist = /*@__PURE__*/ API.make(() => ({
|
|
1041
|
+
input: GetCommunitylistRequest,
|
|
1042
|
+
output: GetCommunitylistResponse,
|
|
1043
|
+
errors: [],
|
|
1044
|
+
protocol: OpnsenseProtocol,
|
|
1045
|
+
retry: Retry.Retry,
|
|
1046
|
+
}));
|
|
1047
|
+
/** Fetch one neighbors.neighbor item by uuid. */
|
|
1048
|
+
export const getNeighbor = /*@__PURE__*/ API.make(() => ({
|
|
1049
|
+
input: GetNeighborRequest,
|
|
1050
|
+
output: GetNeighborResponse,
|
|
1051
|
+
errors: [],
|
|
1052
|
+
protocol: OpnsenseProtocol,
|
|
1053
|
+
retry: Retry.Retry,
|
|
1054
|
+
}));
|
|
1055
|
+
/** Fetch one peergroups.peergroup item by uuid. */
|
|
1056
|
+
export const getPeergroup = /*@__PURE__*/ API.make(() => ({
|
|
1057
|
+
input: GetPeergroupRequest,
|
|
1058
|
+
output: GetPeergroupResponse,
|
|
1059
|
+
errors: [],
|
|
1060
|
+
protocol: OpnsenseProtocol,
|
|
1061
|
+
retry: Retry.Retry,
|
|
1062
|
+
}));
|
|
1063
|
+
/** Fetch one prefixlists.prefixlist item by uuid. */
|
|
1064
|
+
export const getPrefixlist = /*@__PURE__*/ API.make(() => ({
|
|
1065
|
+
input: GetPrefixlistRequest,
|
|
1066
|
+
output: GetPrefixlistResponse,
|
|
1067
|
+
errors: [],
|
|
1068
|
+
protocol: OpnsenseProtocol,
|
|
1069
|
+
retry: Retry.Retry,
|
|
1070
|
+
}));
|
|
1071
|
+
/** Fetch one redistributions.redistribution item by uuid. */
|
|
1072
|
+
export const getRedistribution = /*@__PURE__*/ API.make(() => ({
|
|
1073
|
+
input: GetRedistributionRequest,
|
|
1074
|
+
output: GetRedistributionResponse,
|
|
1075
|
+
errors: [],
|
|
1076
|
+
protocol: OpnsenseProtocol,
|
|
1077
|
+
retry: Retry.Retry,
|
|
1078
|
+
}));
|
|
1079
|
+
/** Fetch one routemaps.routemap item by uuid. */
|
|
1080
|
+
export const getRoutemap = /*@__PURE__*/ API.make(() => ({
|
|
1081
|
+
input: GetRoutemapRequest,
|
|
1082
|
+
output: GetRoutemapResponse,
|
|
1083
|
+
errors: [],
|
|
1084
|
+
protocol: OpnsenseProtocol,
|
|
1085
|
+
retry: Retry.Retry,
|
|
1086
|
+
}));
|
|
1087
|
+
/** Search aspaths.aspath items (paginated). */
|
|
1088
|
+
export const searchAspath = /*@__PURE__*/ API.make(() => ({
|
|
1089
|
+
input: SearchAspathRequest,
|
|
1090
|
+
output: SearchAspathResponse,
|
|
1091
|
+
errors: [],
|
|
1092
|
+
protocol: OpnsenseProtocol,
|
|
1093
|
+
retry: Retry.Retry,
|
|
1094
|
+
}));
|
|
1095
|
+
/** Search communitylists.communitylist items (paginated). */
|
|
1096
|
+
export const searchCommunitylist = /*@__PURE__*/ API.make(() => ({
|
|
1097
|
+
input: SearchCommunitylistRequest,
|
|
1098
|
+
output: SearchCommunitylistResponse,
|
|
1099
|
+
errors: [],
|
|
1100
|
+
protocol: OpnsenseProtocol,
|
|
1101
|
+
retry: Retry.Retry,
|
|
1102
|
+
}));
|
|
1103
|
+
/** Search neighbors.neighbor items (paginated). */
|
|
1104
|
+
export const searchNeighbor = /*@__PURE__*/ API.make(() => ({
|
|
1105
|
+
input: SearchNeighborRequest,
|
|
1106
|
+
output: SearchNeighborResponse,
|
|
1107
|
+
errors: [],
|
|
1108
|
+
protocol: OpnsenseProtocol,
|
|
1109
|
+
retry: Retry.Retry,
|
|
1110
|
+
}));
|
|
1111
|
+
/** Search peergroups.peergroup items (paginated). */
|
|
1112
|
+
export const searchPeergroup = /*@__PURE__*/ API.make(() => ({
|
|
1113
|
+
input: SearchPeergroupRequest,
|
|
1114
|
+
output: SearchPeergroupResponse,
|
|
1115
|
+
errors: [],
|
|
1116
|
+
protocol: OpnsenseProtocol,
|
|
1117
|
+
retry: Retry.Retry,
|
|
1118
|
+
}));
|
|
1119
|
+
/** Search prefixlists.prefixlist items (paginated). */
|
|
1120
|
+
export const searchPrefixlist = /*@__PURE__*/ API.make(() => ({
|
|
1121
|
+
input: SearchPrefixlistRequest,
|
|
1122
|
+
output: SearchPrefixlistResponse,
|
|
1123
|
+
errors: [],
|
|
1124
|
+
protocol: OpnsenseProtocol,
|
|
1125
|
+
retry: Retry.Retry,
|
|
1126
|
+
}));
|
|
1127
|
+
/** Search redistributions.redistribution items (paginated). */
|
|
1128
|
+
export const searchRedistribution = /*@__PURE__*/ API.make(() => ({
|
|
1129
|
+
input: SearchRedistributionRequest,
|
|
1130
|
+
output: SearchRedistributionResponse,
|
|
1131
|
+
errors: [],
|
|
1132
|
+
protocol: OpnsenseProtocol,
|
|
1133
|
+
retry: Retry.Retry,
|
|
1134
|
+
}));
|
|
1135
|
+
/** Search routemaps.routemap items (paginated). */
|
|
1136
|
+
export const searchRoutemap = /*@__PURE__*/ API.make(() => ({
|
|
1137
|
+
input: SearchRoutemapRequest,
|
|
1138
|
+
output: SearchRoutemapResponse,
|
|
1139
|
+
errors: [],
|
|
1140
|
+
protocol: OpnsenseProtocol,
|
|
1141
|
+
retry: Retry.Retry,
|
|
1142
|
+
}));
|
|
1143
|
+
/** Replace the entire model tree in one call. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1144
|
+
export const set = /*@__PURE__*/ API.make(() => ({
|
|
1145
|
+
input: SetRequest,
|
|
1146
|
+
output: SetResponse,
|
|
1147
|
+
errors: [],
|
|
1148
|
+
protocol: OpnsenseProtocol,
|
|
1149
|
+
retry: Retry.Retry,
|
|
1150
|
+
}));
|
|
1151
|
+
/** Update an existing aspaths.aspath item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1152
|
+
export const setAspath = /*@__PURE__*/ API.make(() => ({
|
|
1153
|
+
input: SetAspathRequest,
|
|
1154
|
+
output: SetAspathResponse,
|
|
1155
|
+
errors: [],
|
|
1156
|
+
protocol: OpnsenseProtocol,
|
|
1157
|
+
retry: Retry.Retry,
|
|
1158
|
+
}));
|
|
1159
|
+
/** Update an existing communitylists.communitylist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1160
|
+
export const setCommunitylist = /*@__PURE__*/ API.make(() => ({
|
|
1161
|
+
input: SetCommunitylistRequest,
|
|
1162
|
+
output: SetCommunitylistResponse,
|
|
1163
|
+
errors: [],
|
|
1164
|
+
protocol: OpnsenseProtocol,
|
|
1165
|
+
retry: Retry.Retry,
|
|
1166
|
+
}));
|
|
1167
|
+
/** Update an existing neighbors.neighbor item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1168
|
+
export const setNeighbor = /*@__PURE__*/ API.make(() => ({
|
|
1169
|
+
input: SetNeighborRequest,
|
|
1170
|
+
output: SetNeighborResponse,
|
|
1171
|
+
errors: [],
|
|
1172
|
+
protocol: OpnsenseProtocol,
|
|
1173
|
+
retry: Retry.Retry,
|
|
1174
|
+
}));
|
|
1175
|
+
/** Update an existing peergroups.peergroup item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1176
|
+
export const setPeergroup = /*@__PURE__*/ API.make(() => ({
|
|
1177
|
+
input: SetPeergroupRequest,
|
|
1178
|
+
output: SetPeergroupResponse,
|
|
1179
|
+
errors: [],
|
|
1180
|
+
protocol: OpnsenseProtocol,
|
|
1181
|
+
retry: Retry.Retry,
|
|
1182
|
+
}));
|
|
1183
|
+
/** Update an existing prefixlists.prefixlist item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1184
|
+
export const setPrefixlist = /*@__PURE__*/ API.make(() => ({
|
|
1185
|
+
input: SetPrefixlistRequest,
|
|
1186
|
+
output: SetPrefixlistResponse,
|
|
1187
|
+
errors: [],
|
|
1188
|
+
protocol: OpnsenseProtocol,
|
|
1189
|
+
retry: Retry.Retry,
|
|
1190
|
+
}));
|
|
1191
|
+
/** Update an existing redistributions.redistribution item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1192
|
+
export const setRedistribution = /*@__PURE__*/ API.make(() => ({
|
|
1193
|
+
input: SetRedistributionRequest,
|
|
1194
|
+
output: SetRedistributionResponse,
|
|
1195
|
+
errors: [],
|
|
1196
|
+
protocol: OpnsenseProtocol,
|
|
1197
|
+
retry: Retry.Retry,
|
|
1198
|
+
}));
|
|
1199
|
+
/** Update an existing routemaps.routemap item. On a validation failure the call fails with ValidationFailed instead of decoding this response. */
|
|
1200
|
+
export const setRoutemap = /*@__PURE__*/ API.make(() => ({
|
|
1201
|
+
input: SetRoutemapRequest,
|
|
1202
|
+
output: SetRoutemapResponse,
|
|
1203
|
+
errors: [],
|
|
1204
|
+
protocol: OpnsenseProtocol,
|
|
1205
|
+
retry: Retry.Retry,
|
|
1206
|
+
}));
|
|
1207
|
+
/** Flip a aspaths.aspath item's enabled flag by uuid. */
|
|
1208
|
+
export const toggleAspath = /*@__PURE__*/ API.make(() => ({
|
|
1209
|
+
input: ToggleAspathRequest,
|
|
1210
|
+
output: ToggleAspathResponse,
|
|
1211
|
+
errors: [],
|
|
1212
|
+
protocol: OpnsenseProtocol,
|
|
1213
|
+
retry: Retry.Retry,
|
|
1214
|
+
}));
|
|
1215
|
+
/** Flip a communitylists.communitylist item's enabled flag by uuid. */
|
|
1216
|
+
export const toggleCommunitylist = /*@__PURE__*/ API.make(() => ({
|
|
1217
|
+
input: ToggleCommunitylistRequest,
|
|
1218
|
+
output: ToggleCommunitylistResponse,
|
|
1219
|
+
errors: [],
|
|
1220
|
+
protocol: OpnsenseProtocol,
|
|
1221
|
+
retry: Retry.Retry,
|
|
1222
|
+
}));
|
|
1223
|
+
/** Flip a neighbors.neighbor item's enabled flag by uuid. */
|
|
1224
|
+
export const toggleNeighbor = /*@__PURE__*/ API.make(() => ({
|
|
1225
|
+
input: ToggleNeighborRequest,
|
|
1226
|
+
output: ToggleNeighborResponse,
|
|
1227
|
+
errors: [],
|
|
1228
|
+
protocol: OpnsenseProtocol,
|
|
1229
|
+
retry: Retry.Retry,
|
|
1230
|
+
}));
|
|
1231
|
+
/** Flip a peergroups.peergroup item's enabled flag by uuid. */
|
|
1232
|
+
export const togglePeergroup = /*@__PURE__*/ API.make(() => ({
|
|
1233
|
+
input: TogglePeergroupRequest,
|
|
1234
|
+
output: TogglePeergroupResponse,
|
|
1235
|
+
errors: [],
|
|
1236
|
+
protocol: OpnsenseProtocol,
|
|
1237
|
+
retry: Retry.Retry,
|
|
1238
|
+
}));
|
|
1239
|
+
/** Flip a prefixlists.prefixlist item's enabled flag by uuid. */
|
|
1240
|
+
export const togglePrefixlist = /*@__PURE__*/ API.make(() => ({
|
|
1241
|
+
input: TogglePrefixlistRequest,
|
|
1242
|
+
output: TogglePrefixlistResponse,
|
|
1243
|
+
errors: [],
|
|
1244
|
+
protocol: OpnsenseProtocol,
|
|
1245
|
+
retry: Retry.Retry,
|
|
1246
|
+
}));
|
|
1247
|
+
/** Flip a redistributions.redistribution item's enabled flag by uuid. */
|
|
1248
|
+
export const toggleRedistribution = /*@__PURE__*/ API.make(() => ({
|
|
1249
|
+
input: ToggleRedistributionRequest,
|
|
1250
|
+
output: ToggleRedistributionResponse,
|
|
1251
|
+
errors: [],
|
|
1252
|
+
protocol: OpnsenseProtocol,
|
|
1253
|
+
retry: Retry.Retry,
|
|
1254
|
+
}));
|
|
1255
|
+
/** Flip a routemaps.routemap item's enabled flag by uuid. */
|
|
1256
|
+
export const toggleRoutemap = /*@__PURE__*/ API.make(() => ({
|
|
1257
|
+
input: ToggleRoutemapRequest,
|
|
1258
|
+
output: ToggleRoutemapResponse,
|
|
1259
|
+
errors: [],
|
|
1260
|
+
protocol: OpnsenseProtocol,
|
|
1261
|
+
retry: Retry.Retry,
|
|
1262
|
+
}));
|
|
1263
|
+
//# sourceMappingURL=quagga_bgp.js.map
|