@homeflare/distilled-opnsense 0.2.0 → 0.3.1
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/README.md +18 -12
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/services/firewall_alias.d.ts +118 -18
- package/dist/services/firewall_alias.d.ts.map +1 -1
- package/dist/services/firewall_alias.js +70 -19
- package/dist/services/firewall_alias.js.map +1 -1
- package/dist/services/firewall_category.d.ts +28 -11
- package/dist/services/firewall_category.d.ts.map +1 -1
- package/dist/services/firewall_category.js +27 -10
- package/dist/services/firewall_category.js.map +1 -1
- package/dist/services/firewall_filter.d.ts +89 -4
- package/dist/services/firewall_filter.d.ts.map +1 -1
- package/dist/services/firewall_filter.js +46 -3
- package/dist/services/firewall_filter.js.map +1 -1
- package/dist/services/firewall_group.d.ts +62 -10
- package/dist/services/firewall_group.d.ts.map +1 -1
- package/dist/services/firewall_group.js +42 -8
- package/dist/services/firewall_group.js.map +1 -1
- package/dist/services/quagga_bgp.d.ts +879 -151
- package/dist/services/quagga_bgp.d.ts.map +1 -1
- package/dist/services/quagga_bgp.js +508 -113
- package/dist/services/quagga_bgp.js.map +1 -1
- package/dist/services/quagga_general.d.ts +42 -4
- package/dist/services/quagga_general.d.ts.map +1 -1
- package/dist/services/quagga_general.js +21 -3
- package/dist/services/quagga_general.js.map +1 -1
- package/dist/services/routing_settings.d.ts +80 -4
- package/dist/services/routing_settings.d.ts.map +1 -1
- package/dist/services/routing_settings.js +43 -3
- package/dist/services/routing_settings.js.map +1 -1
- package/package.json +3 -3
- package/src/protocol.ts +3 -3
- package/src/services/firewall_alias.ts +226 -46
- package/src/services/firewall_category.ts +63 -21
- package/src/services/firewall_filter.ts +166 -9
- package/src/services/firewall_group.ts +120 -18
- package/src/services/quagga_bgp.ts +1930 -550
- package/src/services/quagga_general.ts +72 -9
- package/src/services/routing_settings.ts +140 -9
|
@@ -318,25 +318,40 @@ export const DelRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
318
318
|
identifier: "DelRoutemapResponse",
|
|
319
319
|
});
|
|
320
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
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
export const
|
|
326
|
-
export const
|
|
327
|
-
export const
|
|
321
|
+
export const OptionEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
322
|
+
value: S.String,
|
|
323
|
+
selected: S.Number,
|
|
324
|
+
})).annotate({ identifier: "OptionEntry" });
|
|
325
|
+
export const ModelBestpathMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
326
|
+
export const ModelNeighborReadItemRemoteAsModeMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
327
|
+
export const ModelNeighborReadItemUpdatesourceMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
328
|
+
export const ModelNeighborReadItemLinklocalinterfaceMap =
|
|
329
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
330
|
+
export const ModelNeighborReadItemRemoveprivateasMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
331
|
+
export const ModelNeighborReadItemAllowasInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
332
|
+
export const ModelNeighborReadItemAttributeunchangedMap =
|
|
333
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
334
|
+
export const ModelNeighborReadItemCapabilitiesMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
335
|
+
export const ModelNeighborReadItemLinkedPrefixlistInMap =
|
|
336
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
337
|
+
export const ModelNeighborReadItemLinkedPrefixlistOutMap =
|
|
338
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
339
|
+
export const ModelNeighborReadItemLinkedRoutemapInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
340
|
+
export const ModelNeighborReadItemLinkedRoutemapOutMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
341
|
+
export const ModelNeighborReadItemPeergroupMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
342
|
+
export const ModelNeighborReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
343
|
uuid: S.optional(S.String),
|
|
329
344
|
enabled: S.String,
|
|
330
345
|
description: S.optional(S.String),
|
|
331
346
|
address: S.String,
|
|
332
|
-
remote_as_mode: S.optional(
|
|
347
|
+
remote_as_mode: S.optional(ModelNeighborReadItemRemoteAsModeMap),
|
|
333
348
|
remoteas: S.optional(S.String),
|
|
334
349
|
localas: S.optional(S.String),
|
|
335
350
|
password: S.optional(S.String),
|
|
336
351
|
weight: S.optional(S.String),
|
|
337
352
|
localip: S.optional(S.String),
|
|
338
|
-
updatesource: S.optional(
|
|
339
|
-
linklocalinterface: S.optional(
|
|
353
|
+
updatesource: S.optional(ModelNeighborReadItemUpdatesourceMap),
|
|
354
|
+
linklocalinterface: S.optional(ModelNeighborReadItemLinklocalinterfaceMap),
|
|
340
355
|
nexthopself: S.optional(S.String),
|
|
341
356
|
nexthopselfall: S.optional(S.String),
|
|
342
357
|
multihop: S.optional(S.String),
|
|
@@ -350,138 +365,159 @@ export const ModelNeighborItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
350
365
|
connecttimer: S.optional(S.String),
|
|
351
366
|
defaultoriginate: S.optional(S.String),
|
|
352
367
|
asoverride: S.optional(S.String),
|
|
353
|
-
removeprivateas: S.optional(
|
|
354
|
-
allowas_in: S.optional(
|
|
368
|
+
removeprivateas: S.optional(ModelNeighborReadItemRemoveprivateasMap),
|
|
369
|
+
allowas_in: S.optional(ModelNeighborReadItemAllowasInMap),
|
|
355
370
|
disable_connected_check: S.optional(S.String),
|
|
356
|
-
attributeunchanged: S.optional(
|
|
357
|
-
capabilities: S.optional(
|
|
358
|
-
linkedPrefixlistIn: S.optional(
|
|
359
|
-
linkedPrefixlistOut: S.optional(
|
|
360
|
-
linkedRoutemapIn: S.optional(
|
|
361
|
-
linkedRoutemapOut: S.optional(
|
|
362
|
-
peergroup: S.optional(
|
|
371
|
+
attributeunchanged: S.optional(ModelNeighborReadItemAttributeunchangedMap),
|
|
372
|
+
capabilities: S.optional(ModelNeighborReadItemCapabilitiesMap),
|
|
373
|
+
linkedPrefixlistIn: S.optional(ModelNeighborReadItemLinkedPrefixlistInMap),
|
|
374
|
+
linkedPrefixlistOut: S.optional(ModelNeighborReadItemLinkedPrefixlistOutMap),
|
|
375
|
+
linkedRoutemapIn: S.optional(ModelNeighborReadItemLinkedRoutemapInMap),
|
|
376
|
+
linkedRoutemapOut: S.optional(ModelNeighborReadItemLinkedRoutemapOutMap),
|
|
377
|
+
peergroup: S.optional(ModelNeighborReadItemPeergroupMap),
|
|
363
378
|
})).annotate({
|
|
364
|
-
identifier: "
|
|
379
|
+
identifier: "ModelNeighborReadItem",
|
|
365
380
|
});
|
|
366
|
-
export const
|
|
367
|
-
export const
|
|
368
|
-
neighbor: S.optional(
|
|
369
|
-
})).annotate({
|
|
370
|
-
|
|
371
|
-
|
|
381
|
+
export const ModelNeighborReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelNeighborReadItem);
|
|
382
|
+
export const ModelNeighborsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
neighbor: S.optional(ModelNeighborReadItemMap),
|
|
384
|
+
})).annotate({
|
|
385
|
+
identifier: "ModelNeighborsRead",
|
|
386
|
+
});
|
|
387
|
+
export const ModelAspathReadItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
388
|
+
export const ModelAspathReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
389
|
uuid: S.optional(S.String),
|
|
373
390
|
enabled: S.String,
|
|
374
391
|
description: S.optional(S.String),
|
|
375
392
|
number: S.String,
|
|
376
|
-
action:
|
|
393
|
+
action: ModelAspathReadItemActionMap,
|
|
377
394
|
as: S.String,
|
|
378
395
|
})).annotate({
|
|
379
|
-
identifier: "
|
|
396
|
+
identifier: "ModelAspathReadItem",
|
|
380
397
|
});
|
|
381
|
-
export const
|
|
382
|
-
export const
|
|
383
|
-
aspath: S.optional(
|
|
384
|
-
})).annotate({
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
export const
|
|
398
|
+
export const ModelAspathReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelAspathReadItem);
|
|
399
|
+
export const ModelAspathsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
400
|
+
aspath: S.optional(ModelAspathReadItemMap),
|
|
401
|
+
})).annotate({
|
|
402
|
+
identifier: "ModelAspathsRead",
|
|
403
|
+
});
|
|
404
|
+
export const ModelPrefixlistReadItemVersionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
405
|
+
export const ModelPrefixlistReadItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
406
|
+
export const ModelPrefixlistReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
407
|
uuid: S.optional(S.String),
|
|
389
408
|
enabled: S.String,
|
|
390
409
|
description: S.optional(S.String),
|
|
391
410
|
name: S.String,
|
|
392
|
-
version:
|
|
411
|
+
version: ModelPrefixlistReadItemVersionMap,
|
|
393
412
|
seqnumber: S.String,
|
|
394
|
-
action:
|
|
413
|
+
action: ModelPrefixlistReadItemActionMap,
|
|
395
414
|
network: S.String,
|
|
396
415
|
})).annotate({
|
|
397
|
-
identifier: "
|
|
416
|
+
identifier: "ModelPrefixlistReadItem",
|
|
398
417
|
});
|
|
399
|
-
export const
|
|
400
|
-
export const
|
|
401
|
-
prefixlist: S.optional(
|
|
418
|
+
export const ModelPrefixlistReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelPrefixlistReadItem);
|
|
419
|
+
export const ModelPrefixlistsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
420
|
+
prefixlist: S.optional(ModelPrefixlistReadItemMap),
|
|
402
421
|
})).annotate({
|
|
403
|
-
identifier: "
|
|
422
|
+
identifier: "ModelPrefixlistsRead",
|
|
404
423
|
});
|
|
405
|
-
export const
|
|
406
|
-
export const
|
|
424
|
+
export const ModelCommunitylistReadItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
425
|
+
export const ModelCommunitylistReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
426
|
uuid: S.optional(S.String),
|
|
408
427
|
enabled: S.String,
|
|
409
428
|
description: S.optional(S.String),
|
|
410
429
|
number: S.String,
|
|
411
430
|
seqnumber: S.String,
|
|
412
|
-
action:
|
|
431
|
+
action: ModelCommunitylistReadItemActionMap,
|
|
413
432
|
community: S.String,
|
|
414
433
|
})).annotate({
|
|
415
|
-
identifier: "
|
|
434
|
+
identifier: "ModelCommunitylistReadItem",
|
|
416
435
|
});
|
|
417
|
-
export const
|
|
418
|
-
export const
|
|
419
|
-
communitylist: S.optional(
|
|
436
|
+
export const ModelCommunitylistReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelCommunitylistReadItem);
|
|
437
|
+
export const ModelCommunitylistsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
438
|
+
communitylist: S.optional(ModelCommunitylistReadItemMap),
|
|
420
439
|
})).annotate({
|
|
421
|
-
identifier: "
|
|
440
|
+
identifier: "ModelCommunitylistsRead",
|
|
422
441
|
});
|
|
423
|
-
export const
|
|
424
|
-
export const
|
|
442
|
+
export const ModelRoutemapReadItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
443
|
+
export const ModelRoutemapReadItemMatchMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
444
|
+
export const ModelRoutemapReadItemMatch2Map = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
445
|
+
export const ModelRoutemapReadItemMatch3Map = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
446
|
+
export const ModelRoutemapReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
425
447
|
uuid: S.optional(S.String),
|
|
426
448
|
enabled: S.String,
|
|
427
449
|
description: S.optional(S.String),
|
|
428
450
|
name: S.String,
|
|
429
|
-
action:
|
|
451
|
+
action: ModelRoutemapReadItemActionMap,
|
|
430
452
|
id: S.String,
|
|
431
|
-
match: S.optional(
|
|
432
|
-
match2: S.optional(
|
|
433
|
-
match3: S.optional(
|
|
453
|
+
match: S.optional(ModelRoutemapReadItemMatchMap),
|
|
454
|
+
match2: S.optional(ModelRoutemapReadItemMatch2Map),
|
|
455
|
+
match3: S.optional(ModelRoutemapReadItemMatch3Map),
|
|
434
456
|
set: S.optional(S.String),
|
|
435
457
|
})).annotate({
|
|
436
|
-
identifier: "
|
|
458
|
+
identifier: "ModelRoutemapReadItem",
|
|
437
459
|
});
|
|
438
|
-
export const
|
|
439
|
-
export const
|
|
440
|
-
routemap: S.optional(
|
|
441
|
-
})).annotate({
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
export const
|
|
460
|
+
export const ModelRoutemapReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelRoutemapReadItem);
|
|
461
|
+
export const ModelRoutemapsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
462
|
+
routemap: S.optional(ModelRoutemapReadItemMap),
|
|
463
|
+
})).annotate({
|
|
464
|
+
identifier: "ModelRoutemapsRead",
|
|
465
|
+
});
|
|
466
|
+
export const ModelPeergroupReadItemRemoteAsModeMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
467
|
+
export const ModelPeergroupReadItemFamilyMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
468
|
+
export const ModelPeergroupReadItemListenrangesMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
469
|
+
export const ModelPeergroupReadItemUpdatesourceMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
470
|
+
export const ModelPeergroupReadItemLinkedPrefixlistInMap =
|
|
471
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
472
|
+
export const ModelPeergroupReadItemLinkedPrefixlistOutMap =
|
|
473
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
474
|
+
export const ModelPeergroupReadItemLinkedRoutemapInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
475
|
+
export const ModelPeergroupReadItemLinkedRoutemapOutMap =
|
|
476
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
477
|
+
export const ModelPeergroupReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
445
478
|
uuid: S.optional(S.String),
|
|
446
479
|
enabled: S.String,
|
|
447
480
|
name: S.String,
|
|
448
|
-
remote_as_mode: S.optional(
|
|
481
|
+
remote_as_mode: S.optional(ModelPeergroupReadItemRemoteAsModeMap),
|
|
449
482
|
remoteas: S.optional(S.String),
|
|
450
|
-
family:
|
|
451
|
-
listenranges: S.optional(
|
|
452
|
-
updatesource: S.optional(
|
|
483
|
+
family: ModelPeergroupReadItemFamilyMap,
|
|
484
|
+
listenranges: S.optional(ModelPeergroupReadItemListenrangesMap),
|
|
485
|
+
updatesource: S.optional(ModelPeergroupReadItemUpdatesourceMap),
|
|
453
486
|
nexthopself: S.optional(S.String),
|
|
454
487
|
defaultoriginate: S.optional(S.String),
|
|
455
|
-
linkedPrefixlistIn: S.optional(
|
|
456
|
-
linkedPrefixlistOut: S.optional(
|
|
457
|
-
linkedRoutemapIn: S.optional(
|
|
458
|
-
linkedRoutemapOut: S.optional(
|
|
488
|
+
linkedPrefixlistIn: S.optional(ModelPeergroupReadItemLinkedPrefixlistInMap),
|
|
489
|
+
linkedPrefixlistOut: S.optional(ModelPeergroupReadItemLinkedPrefixlistOutMap),
|
|
490
|
+
linkedRoutemapIn: S.optional(ModelPeergroupReadItemLinkedRoutemapInMap),
|
|
491
|
+
linkedRoutemapOut: S.optional(ModelPeergroupReadItemLinkedRoutemapOutMap),
|
|
459
492
|
})).annotate({
|
|
460
|
-
identifier: "
|
|
493
|
+
identifier: "ModelPeergroupReadItem",
|
|
461
494
|
});
|
|
462
|
-
export const
|
|
463
|
-
export const
|
|
464
|
-
peergroup: S.optional(
|
|
495
|
+
export const ModelPeergroupReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelPeergroupReadItem);
|
|
496
|
+
export const ModelPeergroupsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
497
|
+
peergroup: S.optional(ModelPeergroupReadItemMap),
|
|
465
498
|
})).annotate({
|
|
466
|
-
identifier: "
|
|
499
|
+
identifier: "ModelPeergroupsRead",
|
|
467
500
|
});
|
|
468
|
-
export const
|
|
469
|
-
|
|
501
|
+
export const ModelRedistributionReadItemRedistributeMap =
|
|
502
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
503
|
+
export const ModelRedistributionReadItemLinkedRoutemapMap =
|
|
504
|
+
/*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
505
|
+
export const ModelRedistributionReadItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
470
506
|
uuid: S.optional(S.String),
|
|
471
507
|
enabled: S.String,
|
|
472
508
|
description: S.optional(S.String),
|
|
473
|
-
redistribute:
|
|
474
|
-
linkedRoutemap: S.optional(
|
|
509
|
+
redistribute: ModelRedistributionReadItemRedistributeMap,
|
|
510
|
+
linkedRoutemap: S.optional(ModelRedistributionReadItemLinkedRoutemapMap),
|
|
475
511
|
})).annotate({
|
|
476
|
-
identifier: "
|
|
512
|
+
identifier: "ModelRedistributionReadItem",
|
|
477
513
|
});
|
|
478
|
-
export const
|
|
479
|
-
export const
|
|
480
|
-
redistribution: S.optional(
|
|
514
|
+
export const ModelRedistributionReadItemMap = /*@__PURE__*/ S.Record(S.String, ModelRedistributionReadItem);
|
|
515
|
+
export const ModelRedistributionsRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
516
|
+
redistribution: S.optional(ModelRedistributionReadItemMap),
|
|
481
517
|
})).annotate({
|
|
482
|
-
identifier: "
|
|
518
|
+
identifier: "ModelRedistributionsRead",
|
|
483
519
|
});
|
|
484
|
-
export const
|
|
520
|
+
export const ModelRead = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
485
521
|
enabled: S.String,
|
|
486
522
|
asnumber: S.String,
|
|
487
523
|
distance: S.optional(S.String),
|
|
@@ -491,81 +527,256 @@ export const Model = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
491
527
|
enforce_first_as: S.String,
|
|
492
528
|
logneighborchanges: S.String,
|
|
493
529
|
networks: S.optional(S.String),
|
|
494
|
-
bestpath: S.optional(
|
|
530
|
+
bestpath: S.optional(ModelBestpathMap),
|
|
495
531
|
maximumpaths: S.optional(S.String),
|
|
496
532
|
maximumpathsibgp: S.optional(S.String),
|
|
497
|
-
neighbors: S.optional(
|
|
498
|
-
aspaths: S.optional(
|
|
499
|
-
prefixlists: S.optional(
|
|
500
|
-
communitylists: S.optional(
|
|
501
|
-
routemaps: S.optional(
|
|
502
|
-
peergroups: S.optional(
|
|
503
|
-
redistributions: S.optional(
|
|
504
|
-
})).annotate({ identifier: "
|
|
533
|
+
neighbors: S.optional(ModelNeighborsRead),
|
|
534
|
+
aspaths: S.optional(ModelAspathsRead),
|
|
535
|
+
prefixlists: S.optional(ModelPrefixlistsRead),
|
|
536
|
+
communitylists: S.optional(ModelCommunitylistsRead),
|
|
537
|
+
routemaps: S.optional(ModelRoutemapsRead),
|
|
538
|
+
peergroups: S.optional(ModelPeergroupsRead),
|
|
539
|
+
redistributions: S.optional(ModelRedistributionsRead),
|
|
540
|
+
})).annotate({ identifier: "ModelRead" });
|
|
505
541
|
export const GetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
506
|
-
bgp: S.optional(
|
|
542
|
+
bgp: S.optional(ModelRead),
|
|
507
543
|
})).annotate({ identifier: "GetResponse" });
|
|
508
|
-
export const GetAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
544
|
+
export const GetAspathRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
545
|
+
uuid: S.String.pipe(T.Label()),
|
|
546
|
+
}).pipe(T.Http({
|
|
547
|
+
method: "GET",
|
|
548
|
+
uri: "/api/quagga/bgp/getAspath/{uuid}",
|
|
549
|
+
code: 200,
|
|
550
|
+
}))).annotate({
|
|
509
551
|
identifier: "GetAspathRequest",
|
|
510
552
|
});
|
|
553
|
+
export const GetAspathItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
554
|
+
export const GetAspathItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
555
|
+
uuid: S.optional(S.String),
|
|
556
|
+
enabled: S.String,
|
|
557
|
+
description: S.optional(S.String),
|
|
558
|
+
number: S.String,
|
|
559
|
+
action: GetAspathItemActionMap,
|
|
560
|
+
as: S.String,
|
|
561
|
+
})).annotate({ identifier: "GetAspathItem" });
|
|
511
562
|
export const GetAspathResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
512
|
-
aspath: S.optional(
|
|
563
|
+
aspath: S.optional(GetAspathItem),
|
|
513
564
|
})).annotate({
|
|
514
565
|
identifier: "GetAspathResponse",
|
|
515
566
|
});
|
|
516
|
-
export const GetCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
567
|
+
export const GetCommunitylistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
568
|
+
uuid: S.String.pipe(T.Label()),
|
|
569
|
+
}).pipe(T.Http({
|
|
517
570
|
method: "GET",
|
|
518
|
-
uri: "/api/quagga/bgp/getCommunitylist",
|
|
571
|
+
uri: "/api/quagga/bgp/getCommunitylist/{uuid}",
|
|
519
572
|
code: 200,
|
|
520
573
|
}))).annotate({
|
|
521
574
|
identifier: "GetCommunitylistRequest",
|
|
522
575
|
});
|
|
576
|
+
export const GetCommunitylistItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
577
|
+
export const GetCommunitylistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
578
|
+
uuid: S.optional(S.String),
|
|
579
|
+
enabled: S.String,
|
|
580
|
+
description: S.optional(S.String),
|
|
581
|
+
number: S.String,
|
|
582
|
+
seqnumber: S.String,
|
|
583
|
+
action: GetCommunitylistItemActionMap,
|
|
584
|
+
community: S.String,
|
|
585
|
+
})).annotate({
|
|
586
|
+
identifier: "GetCommunitylistItem",
|
|
587
|
+
});
|
|
523
588
|
export const GetCommunitylistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
524
|
-
communitylist: S.optional(
|
|
589
|
+
communitylist: S.optional(GetCommunitylistItem),
|
|
525
590
|
})).annotate({
|
|
526
591
|
identifier: "GetCommunitylistResponse",
|
|
527
592
|
});
|
|
528
|
-
export const GetNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
593
|
+
export const GetNeighborRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
594
|
+
uuid: S.String.pipe(T.Label()),
|
|
595
|
+
}).pipe(T.Http({
|
|
596
|
+
method: "GET",
|
|
597
|
+
uri: "/api/quagga/bgp/getNeighbor/{uuid}",
|
|
598
|
+
code: 200,
|
|
599
|
+
}))).annotate({
|
|
529
600
|
identifier: "GetNeighborRequest",
|
|
530
601
|
});
|
|
602
|
+
export const GetNeighborItemRemoteAsModeMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
603
|
+
export const GetNeighborItemUpdatesourceMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
604
|
+
export const GetNeighborItemLinklocalinterfaceMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
605
|
+
export const GetNeighborItemRemoveprivateasMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
606
|
+
export const GetNeighborItemAllowasInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
607
|
+
export const GetNeighborItemAttributeunchangedMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
608
|
+
export const GetNeighborItemCapabilitiesMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
609
|
+
export const GetNeighborItemLinkedPrefixlistInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
610
|
+
export const GetNeighborItemLinkedPrefixlistOutMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
611
|
+
export const GetNeighborItemLinkedRoutemapInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
612
|
+
export const GetNeighborItemLinkedRoutemapOutMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
613
|
+
export const GetNeighborItemPeergroupMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
614
|
+
export const GetNeighborItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
615
|
+
uuid: S.optional(S.String),
|
|
616
|
+
enabled: S.String,
|
|
617
|
+
description: S.optional(S.String),
|
|
618
|
+
address: S.String,
|
|
619
|
+
remote_as_mode: S.optional(GetNeighborItemRemoteAsModeMap),
|
|
620
|
+
remoteas: S.optional(S.String),
|
|
621
|
+
localas: S.optional(S.String),
|
|
622
|
+
password: S.optional(S.String),
|
|
623
|
+
weight: S.optional(S.String),
|
|
624
|
+
localip: S.optional(S.String),
|
|
625
|
+
updatesource: S.optional(GetNeighborItemUpdatesourceMap),
|
|
626
|
+
linklocalinterface: S.optional(GetNeighborItemLinklocalinterfaceMap),
|
|
627
|
+
nexthopself: S.optional(S.String),
|
|
628
|
+
nexthopselfall: S.optional(S.String),
|
|
629
|
+
multihop: S.optional(S.String),
|
|
630
|
+
multiprotocol: S.optional(S.String),
|
|
631
|
+
rrclient: S.optional(S.String),
|
|
632
|
+
soft_reconfiguration_inbound: S.optional(S.String),
|
|
633
|
+
bfd: S.optional(S.String),
|
|
634
|
+
bfd_strict: S.optional(S.String),
|
|
635
|
+
keepalive: S.optional(S.String),
|
|
636
|
+
holddown: S.optional(S.String),
|
|
637
|
+
connecttimer: S.optional(S.String),
|
|
638
|
+
defaultoriginate: S.optional(S.String),
|
|
639
|
+
asoverride: S.optional(S.String),
|
|
640
|
+
removeprivateas: S.optional(GetNeighborItemRemoveprivateasMap),
|
|
641
|
+
allowas_in: S.optional(GetNeighborItemAllowasInMap),
|
|
642
|
+
disable_connected_check: S.optional(S.String),
|
|
643
|
+
attributeunchanged: S.optional(GetNeighborItemAttributeunchangedMap),
|
|
644
|
+
capabilities: S.optional(GetNeighborItemCapabilitiesMap),
|
|
645
|
+
linkedPrefixlistIn: S.optional(GetNeighborItemLinkedPrefixlistInMap),
|
|
646
|
+
linkedPrefixlistOut: S.optional(GetNeighborItemLinkedPrefixlistOutMap),
|
|
647
|
+
linkedRoutemapIn: S.optional(GetNeighborItemLinkedRoutemapInMap),
|
|
648
|
+
linkedRoutemapOut: S.optional(GetNeighborItemLinkedRoutemapOutMap),
|
|
649
|
+
peergroup: S.optional(GetNeighborItemPeergroupMap),
|
|
650
|
+
})).annotate({
|
|
651
|
+
identifier: "GetNeighborItem",
|
|
652
|
+
});
|
|
531
653
|
export const GetNeighborResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
532
|
-
neighbor: S.optional(
|
|
654
|
+
neighbor: S.optional(GetNeighborItem),
|
|
533
655
|
})).annotate({
|
|
534
656
|
identifier: "GetNeighborResponse",
|
|
535
657
|
});
|
|
536
|
-
export const GetPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
658
|
+
export const GetPeergroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
659
|
+
uuid: S.String.pipe(T.Label()),
|
|
660
|
+
}).pipe(T.Http({
|
|
661
|
+
method: "GET",
|
|
662
|
+
uri: "/api/quagga/bgp/getPeergroup/{uuid}",
|
|
663
|
+
code: 200,
|
|
664
|
+
}))).annotate({
|
|
537
665
|
identifier: "GetPeergroupRequest",
|
|
538
666
|
});
|
|
667
|
+
export const GetPeergroupItemRemoteAsModeMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
668
|
+
export const GetPeergroupItemFamilyMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
669
|
+
export const GetPeergroupItemListenrangesMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
670
|
+
export const GetPeergroupItemUpdatesourceMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
671
|
+
export const GetPeergroupItemLinkedPrefixlistInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
672
|
+
export const GetPeergroupItemLinkedPrefixlistOutMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
673
|
+
export const GetPeergroupItemLinkedRoutemapInMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
674
|
+
export const GetPeergroupItemLinkedRoutemapOutMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
675
|
+
export const GetPeergroupItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
676
|
+
uuid: S.optional(S.String),
|
|
677
|
+
enabled: S.String,
|
|
678
|
+
name: S.String,
|
|
679
|
+
remote_as_mode: S.optional(GetPeergroupItemRemoteAsModeMap),
|
|
680
|
+
remoteas: S.optional(S.String),
|
|
681
|
+
family: GetPeergroupItemFamilyMap,
|
|
682
|
+
listenranges: S.optional(GetPeergroupItemListenrangesMap),
|
|
683
|
+
updatesource: S.optional(GetPeergroupItemUpdatesourceMap),
|
|
684
|
+
nexthopself: S.optional(S.String),
|
|
685
|
+
defaultoriginate: S.optional(S.String),
|
|
686
|
+
linkedPrefixlistIn: S.optional(GetPeergroupItemLinkedPrefixlistInMap),
|
|
687
|
+
linkedPrefixlistOut: S.optional(GetPeergroupItemLinkedPrefixlistOutMap),
|
|
688
|
+
linkedRoutemapIn: S.optional(GetPeergroupItemLinkedRoutemapInMap),
|
|
689
|
+
linkedRoutemapOut: S.optional(GetPeergroupItemLinkedRoutemapOutMap),
|
|
690
|
+
})).annotate({
|
|
691
|
+
identifier: "GetPeergroupItem",
|
|
692
|
+
});
|
|
539
693
|
export const GetPeergroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
540
|
-
peergroup: S.optional(
|
|
694
|
+
peergroup: S.optional(GetPeergroupItem),
|
|
541
695
|
})).annotate({
|
|
542
696
|
identifier: "GetPeergroupResponse",
|
|
543
697
|
});
|
|
544
|
-
export const GetPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
698
|
+
export const GetPrefixlistRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
699
|
+
uuid: S.String.pipe(T.Label()),
|
|
700
|
+
}).pipe(T.Http({
|
|
701
|
+
method: "GET",
|
|
702
|
+
uri: "/api/quagga/bgp/getPrefixlist/{uuid}",
|
|
703
|
+
code: 200,
|
|
704
|
+
}))).annotate({
|
|
545
705
|
identifier: "GetPrefixlistRequest",
|
|
546
706
|
});
|
|
707
|
+
export const GetPrefixlistItemVersionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
708
|
+
export const GetPrefixlistItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
709
|
+
export const GetPrefixlistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
710
|
+
uuid: S.optional(S.String),
|
|
711
|
+
enabled: S.String,
|
|
712
|
+
description: S.optional(S.String),
|
|
713
|
+
name: S.String,
|
|
714
|
+
version: GetPrefixlistItemVersionMap,
|
|
715
|
+
seqnumber: S.String,
|
|
716
|
+
action: GetPrefixlistItemActionMap,
|
|
717
|
+
network: S.String,
|
|
718
|
+
})).annotate({
|
|
719
|
+
identifier: "GetPrefixlistItem",
|
|
720
|
+
});
|
|
547
721
|
export const GetPrefixlistResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
548
|
-
prefixlist: S.optional(
|
|
722
|
+
prefixlist: S.optional(GetPrefixlistItem),
|
|
549
723
|
})).annotate({
|
|
550
724
|
identifier: "GetPrefixlistResponse",
|
|
551
725
|
});
|
|
552
|
-
export const GetRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
726
|
+
export const GetRedistributionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
727
|
+
uuid: S.String.pipe(T.Label()),
|
|
728
|
+
}).pipe(T.Http({
|
|
553
729
|
method: "GET",
|
|
554
|
-
uri: "/api/quagga/bgp/getRedistribution",
|
|
730
|
+
uri: "/api/quagga/bgp/getRedistribution/{uuid}",
|
|
555
731
|
code: 200,
|
|
556
732
|
}))).annotate({
|
|
557
733
|
identifier: "GetRedistributionRequest",
|
|
558
734
|
});
|
|
735
|
+
export const GetRedistributionItemRedistributeMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
736
|
+
export const GetRedistributionItemLinkedRoutemapMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
737
|
+
export const GetRedistributionItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
738
|
+
uuid: S.optional(S.String),
|
|
739
|
+
enabled: S.String,
|
|
740
|
+
description: S.optional(S.String),
|
|
741
|
+
redistribute: GetRedistributionItemRedistributeMap,
|
|
742
|
+
linkedRoutemap: S.optional(GetRedistributionItemLinkedRoutemapMap),
|
|
743
|
+
})).annotate({
|
|
744
|
+
identifier: "GetRedistributionItem",
|
|
745
|
+
});
|
|
559
746
|
export const GetRedistributionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
560
|
-
redistribution: S.optional(
|
|
747
|
+
redistribution: S.optional(GetRedistributionItem),
|
|
561
748
|
})).annotate({
|
|
562
749
|
identifier: "GetRedistributionResponse",
|
|
563
750
|
});
|
|
564
|
-
export const GetRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
751
|
+
export const GetRoutemapRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
752
|
+
uuid: S.String.pipe(T.Label()),
|
|
753
|
+
}).pipe(T.Http({
|
|
754
|
+
method: "GET",
|
|
755
|
+
uri: "/api/quagga/bgp/getRoutemap/{uuid}",
|
|
756
|
+
code: 200,
|
|
757
|
+
}))).annotate({
|
|
565
758
|
identifier: "GetRoutemapRequest",
|
|
566
759
|
});
|
|
760
|
+
export const GetRoutemapItemActionMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
761
|
+
export const GetRoutemapItemMatchMap = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
762
|
+
export const GetRoutemapItemMatch2Map = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
763
|
+
export const GetRoutemapItemMatch3Map = /*@__PURE__*/ S.Record(S.String, OptionEntry);
|
|
764
|
+
export const GetRoutemapItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
765
|
+
uuid: S.optional(S.String),
|
|
766
|
+
enabled: S.String,
|
|
767
|
+
description: S.optional(S.String),
|
|
768
|
+
name: S.String,
|
|
769
|
+
action: GetRoutemapItemActionMap,
|
|
770
|
+
id: S.String,
|
|
771
|
+
match: S.optional(GetRoutemapItemMatchMap),
|
|
772
|
+
match2: S.optional(GetRoutemapItemMatch2Map),
|
|
773
|
+
match3: S.optional(GetRoutemapItemMatch3Map),
|
|
774
|
+
set: S.optional(S.String),
|
|
775
|
+
})).annotate({
|
|
776
|
+
identifier: "GetRoutemapItem",
|
|
777
|
+
});
|
|
567
778
|
export const GetRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
568
|
-
routemap: S.optional(
|
|
779
|
+
routemap: S.optional(GetRoutemapItem),
|
|
569
780
|
})).annotate({
|
|
570
781
|
identifier: "GetRoutemapResponse",
|
|
571
782
|
});
|
|
@@ -677,6 +888,190 @@ export const SearchRoutemapResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
677
888
|
})).annotate({
|
|
678
889
|
identifier: "SearchRoutemapResponse",
|
|
679
890
|
});
|
|
891
|
+
export const ModelBestpath = S.String;
|
|
892
|
+
export const ModelNeighborItemRemoteAsMode = S.String;
|
|
893
|
+
export const ModelNeighborItemRemoveprivateas = S.String;
|
|
894
|
+
export const ModelNeighborItemAllowasIn = S.String;
|
|
895
|
+
export const ModelNeighborItemAttributeunchanged = S.String;
|
|
896
|
+
export const ModelNeighborItemCapabilities = S.String;
|
|
897
|
+
export const ModelNeighborItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
898
|
+
uuid: S.optional(S.String),
|
|
899
|
+
enabled: S.String,
|
|
900
|
+
description: S.optional(S.String),
|
|
901
|
+
address: S.String,
|
|
902
|
+
remote_as_mode: S.optional(ModelNeighborItemRemoteAsMode),
|
|
903
|
+
remoteas: S.optional(S.String),
|
|
904
|
+
localas: S.optional(S.String),
|
|
905
|
+
password: S.optional(S.String),
|
|
906
|
+
weight: S.optional(S.String),
|
|
907
|
+
localip: S.optional(S.String),
|
|
908
|
+
updatesource: S.optional(S.String),
|
|
909
|
+
linklocalinterface: S.optional(S.String),
|
|
910
|
+
nexthopself: S.optional(S.String),
|
|
911
|
+
nexthopselfall: S.optional(S.String),
|
|
912
|
+
multihop: S.optional(S.String),
|
|
913
|
+
multiprotocol: S.optional(S.String),
|
|
914
|
+
rrclient: S.optional(S.String),
|
|
915
|
+
soft_reconfiguration_inbound: S.optional(S.String),
|
|
916
|
+
bfd: S.optional(S.String),
|
|
917
|
+
bfd_strict: S.optional(S.String),
|
|
918
|
+
keepalive: S.optional(S.String),
|
|
919
|
+
holddown: S.optional(S.String),
|
|
920
|
+
connecttimer: S.optional(S.String),
|
|
921
|
+
defaultoriginate: S.optional(S.String),
|
|
922
|
+
asoverride: S.optional(S.String),
|
|
923
|
+
removeprivateas: S.optional(ModelNeighborItemRemoveprivateas),
|
|
924
|
+
allowas_in: S.optional(ModelNeighborItemAllowasIn),
|
|
925
|
+
disable_connected_check: S.optional(S.String),
|
|
926
|
+
attributeunchanged: S.optional(ModelNeighborItemAttributeunchanged),
|
|
927
|
+
capabilities: S.optional(ModelNeighborItemCapabilities),
|
|
928
|
+
linkedPrefixlistIn: S.optional(S.String),
|
|
929
|
+
linkedPrefixlistOut: S.optional(S.String),
|
|
930
|
+
linkedRoutemapIn: S.optional(S.String),
|
|
931
|
+
linkedRoutemapOut: S.optional(S.String),
|
|
932
|
+
peergroup: S.optional(S.String),
|
|
933
|
+
})).annotate({
|
|
934
|
+
identifier: "ModelNeighborItem",
|
|
935
|
+
});
|
|
936
|
+
export const ModelNeighborItemMap = /*@__PURE__*/ S.Record(S.String, ModelNeighborItem);
|
|
937
|
+
export const ModelNeighbors = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
938
|
+
neighbor: S.optional(ModelNeighborItemMap),
|
|
939
|
+
})).annotate({ identifier: "ModelNeighbors" });
|
|
940
|
+
export const ModelAspathItemAction = S.String;
|
|
941
|
+
export const ModelAspathItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
942
|
+
uuid: S.optional(S.String),
|
|
943
|
+
enabled: S.String,
|
|
944
|
+
description: S.optional(S.String),
|
|
945
|
+
number: S.String,
|
|
946
|
+
action: ModelAspathItemAction,
|
|
947
|
+
as: S.String,
|
|
948
|
+
})).annotate({
|
|
949
|
+
identifier: "ModelAspathItem",
|
|
950
|
+
});
|
|
951
|
+
export const ModelAspathItemMap = /*@__PURE__*/ S.Record(S.String, ModelAspathItem);
|
|
952
|
+
export const ModelAspaths = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
953
|
+
aspath: S.optional(ModelAspathItemMap),
|
|
954
|
+
})).annotate({ identifier: "ModelAspaths" });
|
|
955
|
+
export const ModelPrefixlistItemVersion = S.String;
|
|
956
|
+
export const ModelPrefixlistItemAction = S.String;
|
|
957
|
+
export const ModelPrefixlistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
958
|
+
uuid: S.optional(S.String),
|
|
959
|
+
enabled: S.String,
|
|
960
|
+
description: S.optional(S.String),
|
|
961
|
+
name: S.String,
|
|
962
|
+
version: ModelPrefixlistItemVersion,
|
|
963
|
+
seqnumber: S.String,
|
|
964
|
+
action: ModelPrefixlistItemAction,
|
|
965
|
+
network: S.String,
|
|
966
|
+
})).annotate({
|
|
967
|
+
identifier: "ModelPrefixlistItem",
|
|
968
|
+
});
|
|
969
|
+
export const ModelPrefixlistItemMap = /*@__PURE__*/ S.Record(S.String, ModelPrefixlistItem);
|
|
970
|
+
export const ModelPrefixlists = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
971
|
+
prefixlist: S.optional(ModelPrefixlistItemMap),
|
|
972
|
+
})).annotate({
|
|
973
|
+
identifier: "ModelPrefixlists",
|
|
974
|
+
});
|
|
975
|
+
export const ModelCommunitylistItemAction = S.String;
|
|
976
|
+
export const ModelCommunitylistItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
977
|
+
uuid: S.optional(S.String),
|
|
978
|
+
enabled: S.String,
|
|
979
|
+
description: S.optional(S.String),
|
|
980
|
+
number: S.String,
|
|
981
|
+
seqnumber: S.String,
|
|
982
|
+
action: ModelCommunitylistItemAction,
|
|
983
|
+
community: S.String,
|
|
984
|
+
})).annotate({
|
|
985
|
+
identifier: "ModelCommunitylistItem",
|
|
986
|
+
});
|
|
987
|
+
export const ModelCommunitylistItemMap = /*@__PURE__*/ S.Record(S.String, ModelCommunitylistItem);
|
|
988
|
+
export const ModelCommunitylists = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
989
|
+
communitylist: S.optional(ModelCommunitylistItemMap),
|
|
990
|
+
})).annotate({
|
|
991
|
+
identifier: "ModelCommunitylists",
|
|
992
|
+
});
|
|
993
|
+
export const ModelRoutemapItemAction = S.String;
|
|
994
|
+
export const ModelRoutemapItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
995
|
+
uuid: S.optional(S.String),
|
|
996
|
+
enabled: S.String,
|
|
997
|
+
description: S.optional(S.String),
|
|
998
|
+
name: S.String,
|
|
999
|
+
action: ModelRoutemapItemAction,
|
|
1000
|
+
id: S.String,
|
|
1001
|
+
match: S.optional(S.String),
|
|
1002
|
+
match2: S.optional(S.String),
|
|
1003
|
+
match3: S.optional(S.String),
|
|
1004
|
+
set: S.optional(S.String),
|
|
1005
|
+
})).annotate({
|
|
1006
|
+
identifier: "ModelRoutemapItem",
|
|
1007
|
+
});
|
|
1008
|
+
export const ModelRoutemapItemMap = /*@__PURE__*/ S.Record(S.String, ModelRoutemapItem);
|
|
1009
|
+
export const ModelRoutemaps = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1010
|
+
routemap: S.optional(ModelRoutemapItemMap),
|
|
1011
|
+
})).annotate({ identifier: "ModelRoutemaps" });
|
|
1012
|
+
export const ModelPeergroupItemRemoteAsMode = S.String;
|
|
1013
|
+
export const ModelPeergroupItemFamily = S.String;
|
|
1014
|
+
export const ModelPeergroupItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1015
|
+
uuid: S.optional(S.String),
|
|
1016
|
+
enabled: S.String,
|
|
1017
|
+
name: S.String,
|
|
1018
|
+
remote_as_mode: S.optional(ModelPeergroupItemRemoteAsMode),
|
|
1019
|
+
remoteas: S.optional(S.String),
|
|
1020
|
+
family: ModelPeergroupItemFamily,
|
|
1021
|
+
listenranges: S.optional(S.String),
|
|
1022
|
+
updatesource: S.optional(S.String),
|
|
1023
|
+
nexthopself: S.optional(S.String),
|
|
1024
|
+
defaultoriginate: S.optional(S.String),
|
|
1025
|
+
linkedPrefixlistIn: S.optional(S.String),
|
|
1026
|
+
linkedPrefixlistOut: S.optional(S.String),
|
|
1027
|
+
linkedRoutemapIn: S.optional(S.String),
|
|
1028
|
+
linkedRoutemapOut: S.optional(S.String),
|
|
1029
|
+
})).annotate({
|
|
1030
|
+
identifier: "ModelPeergroupItem",
|
|
1031
|
+
});
|
|
1032
|
+
export const ModelPeergroupItemMap = /*@__PURE__*/ S.Record(S.String, ModelPeergroupItem);
|
|
1033
|
+
export const ModelPeergroups = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1034
|
+
peergroup: S.optional(ModelPeergroupItemMap),
|
|
1035
|
+
})).annotate({
|
|
1036
|
+
identifier: "ModelPeergroups",
|
|
1037
|
+
});
|
|
1038
|
+
export const ModelRedistributionItemRedistribute = S.String;
|
|
1039
|
+
export const ModelRedistributionItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1040
|
+
uuid: S.optional(S.String),
|
|
1041
|
+
enabled: S.String,
|
|
1042
|
+
description: S.optional(S.String),
|
|
1043
|
+
redistribute: ModelRedistributionItemRedistribute,
|
|
1044
|
+
linkedRoutemap: S.optional(S.String),
|
|
1045
|
+
})).annotate({
|
|
1046
|
+
identifier: "ModelRedistributionItem",
|
|
1047
|
+
});
|
|
1048
|
+
export const ModelRedistributionItemMap = /*@__PURE__*/ S.Record(S.String, ModelRedistributionItem);
|
|
1049
|
+
export const ModelRedistributions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1050
|
+
redistribution: S.optional(ModelRedistributionItemMap),
|
|
1051
|
+
})).annotate({
|
|
1052
|
+
identifier: "ModelRedistributions",
|
|
1053
|
+
});
|
|
1054
|
+
export const Model = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1055
|
+
enabled: S.String,
|
|
1056
|
+
asnumber: S.String,
|
|
1057
|
+
distance: S.optional(S.String),
|
|
1058
|
+
routerid: S.optional(S.String),
|
|
1059
|
+
graceful: S.String,
|
|
1060
|
+
networkimportcheck: S.String,
|
|
1061
|
+
enforce_first_as: S.String,
|
|
1062
|
+
logneighborchanges: S.String,
|
|
1063
|
+
networks: S.optional(S.String),
|
|
1064
|
+
bestpath: S.optional(ModelBestpath),
|
|
1065
|
+
maximumpaths: S.optional(S.String),
|
|
1066
|
+
maximumpathsibgp: S.optional(S.String),
|
|
1067
|
+
neighbors: S.optional(ModelNeighbors),
|
|
1068
|
+
aspaths: S.optional(ModelAspaths),
|
|
1069
|
+
prefixlists: S.optional(ModelPrefixlists),
|
|
1070
|
+
communitylists: S.optional(ModelCommunitylists),
|
|
1071
|
+
routemaps: S.optional(ModelRoutemaps),
|
|
1072
|
+
peergroups: S.optional(ModelPeergroups),
|
|
1073
|
+
redistributions: S.optional(ModelRedistributions),
|
|
1074
|
+
})).annotate({ identifier: "Model" });
|
|
680
1075
|
export const SetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
681
1076
|
bgp: S.optional(Model),
|
|
682
1077
|
}).pipe(T.Http({ method: "POST", uri: "/api/quagga/bgp/set", code: 200 }))).annotate({ identifier: "SetRequest" });
|