@takodotid/circuit 0.36.0 → 0.38.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/dist/chunks/index-6wb41q67.js +62 -0
- package/dist/chunks/{index-2r4bbhac.js → index-yzw86rc8.js} +9 -65
- package/dist/chunks/{server-gzsf5me5.js → server-cxr9ynxc.js} +1 -1
- package/dist/cli/index.js +110 -13
- package/dist/helpers/index.js +227 -1
- package/dist/types/core/address-space.d.ts +1 -1
- package/dist/types/core/address.d.ts +1 -1
- package/dist/types/core/cabling.d.ts +3 -3
- package/dist/types/core/cross-checks.d.ts +3 -3
- package/dist/types/core/define.d.ts +2 -2
- package/dist/types/core/secrets.d.ts +2 -2
- package/dist/types/core/topology.d.ts +2 -2
- package/dist/types/core/validator.d.ts +1 -1
- package/dist/types/helpers/bgp.d.ts +48 -5
- package/dist/types/helpers/cables.d.ts +70 -0
- package/dist/types/helpers/checks.d.ts +1 -1
- package/dist/types/helpers/exchange.d.ts +3 -3
- package/dist/types/helpers/filters.d.ts +1 -1
- package/dist/types/helpers/index.d.ts +14 -10
- package/dist/types/helpers/route-server.d.ts +2 -2
- package/dist/types/helpers/upstreams.d.ts +156 -0
- package/dist/types/index.d.ts +8 -6
- package/dist/types/integrations/librenms.d.ts +2 -2
- package/dist/types/integrations/netbox.d.ts +1 -1
- package/dist/types/integrations/peeringdb.d.ts +1 -1
- package/dist/types/integrations/prometheus.d.ts +2 -2
- package/dist/types/integrations/registries.d.ts +2 -2
- package/dist/types/platforms/bgp-wait.d.ts +7 -1
- package/dist/types/platforms/derive.d.ts +1 -1
- package/dist/types/platforms/fortios/firewall.d.ts +2 -2
- package/dist/types/platforms/fortios/index.d.ts +4 -4
- package/dist/types/platforms/fortios/names.d.ts +1 -1
- package/dist/types/platforms/fortios/plan.d.ts +1 -1
- package/dist/types/platforms/fortios/render.d.ts +1 -1
- package/dist/types/platforms/fortios/routing.d.ts +2 -2
- package/dist/types/platforms/index.d.ts +1 -1
- package/dist/types/platforms/junos/bgp.d.ts +2 -2
- package/dist/types/platforms/junos/index.d.ts +4 -4
- package/dist/types/platforms/junos/render.d.ts +1 -1
- package/dist/types/platforms/line-diff.d.ts +1 -1
- package/dist/types/platforms/platform.d.ts +17 -5
- package/dist/types/platforms/raisecom-ros/index.d.ts +4 -4
- package/dist/types/platforms/raisecom-ros/render.d.ts +1 -1
- package/dist/types/platforms/routeros/index.d.ts +12 -5
- package/dist/types/platforms/routeros/plan.d.ts +1 -1
- package/dist/types/platforms/routeros/render.d.ts +1 -1
- package/dist/types/platforms/vrp/index.d.ts +4 -4
- package/dist/types/platforms/vrp/render.d.ts +1 -1
- package/dist/types/schema/device.d.ts +6 -6
- package/dist/types/schema/firewall.d.ts +1 -1
- package/dist/types/schema/index.d.ts +8 -8
- package/dist/types/schema/interfaces.d.ts +5 -1
- package/dist/types/schema/policy.d.ts +1 -1
- package/dist/types/schema/routing.d.ts +1 -1
- package/dist/types/schema/system.d.ts +2 -2
- package/dist/types/transport/console.d.ts +1 -1
- package/dist/types/transport/ssh.d.ts +1 -1
- package/package.json +2 -2
- package/src/cli/index.ts +55 -4
- package/src/core/cabling.ts +4 -1
- package/src/core/cross-checks.ts +6 -1
- package/src/core/topology.ts +4 -3
- package/src/helpers/bgp.ts +104 -2
- package/src/helpers/cables.ts +91 -0
- package/src/helpers/index.ts +6 -2
- package/src/helpers/upstreams.ts +306 -0
- package/src/index.ts +3 -0
- package/src/platforms/bgp-wait.ts +24 -1
- package/src/platforms/platform.ts +9 -0
- package/src/platforms/routeros/TRAPS.md +1 -0
- package/src/platforms/routeros/index.ts +57 -10
- package/src/schema/interfaces.ts +4 -0
- package/src/studio/data.ts +3 -0
- package/src/studio/public/tables.js +15 -1
|
@@ -1021,19 +1021,33 @@ export class Tables {
|
|
|
1021
1021
|
|
|
1022
1022
|
/** @param {HTMLElement} container */
|
|
1023
1023
|
static #cablesView(container) {
|
|
1024
|
+
// A carrier column only when a cable runs through one.
|
|
1025
|
+
const carried = Tables.#data.cables.some((cable) => cable.through);
|
|
1026
|
+
|
|
1024
1027
|
container.append(
|
|
1025
1028
|
Tables.heading("Cables", "h2"),
|
|
1026
1029
|
Tables.empty("Every cable a port's link names, once, from the end that names it first."),
|
|
1027
1030
|
Tables.#data.cables.length
|
|
1028
1031
|
? Tables.of({
|
|
1029
1032
|
csv: "cables",
|
|
1030
|
-
head: [
|
|
1033
|
+
head: [
|
|
1034
|
+
"Device",
|
|
1035
|
+
"Port",
|
|
1036
|
+
"Far device",
|
|
1037
|
+
"Far port",
|
|
1038
|
+
...(carried ? ["Through"] : []),
|
|
1039
|
+
"LAG",
|
|
1040
|
+
"VLANs",
|
|
1041
|
+
"Description",
|
|
1042
|
+
"",
|
|
1043
|
+
].map((label) => ({ label })),
|
|
1031
1044
|
rows: Tables.#data.cables.map((cable) => ({
|
|
1032
1045
|
cells: [
|
|
1033
1046
|
Tables.deviceLink(cable.device),
|
|
1034
1047
|
cable.port,
|
|
1035
1048
|
Tables.deviceLink(cable.farDevice),
|
|
1036
1049
|
cable.farPort,
|
|
1050
|
+
...(carried ? [cable.through ?? ""] : []),
|
|
1037
1051
|
[cable.lag, cable.farLag].filter(Boolean).join(" to "),
|
|
1038
1052
|
cable.vlans.join(", "),
|
|
1039
1053
|
cable.description ?? "",
|