@takodotid/circuit 0.40.0 → 0.42.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-k38bby43.js → index-yzw86rc8.js} +4 -62
- package/dist/chunks/{server-ggertnce.js → server-cxr9ynxc.js} +1 -1
- package/dist/cli/index.js +127 -49
- package/dist/helpers/index.js +143 -156
- package/dist/types/core/cabling.d.ts +0 -6
- package/dist/types/core/define.d.ts +1 -1
- package/dist/types/core/validator.d.ts +2 -0
- package/dist/types/helpers/bgp.d.ts +53 -9
- package/dist/types/helpers/cables.d.ts +14 -11
- package/dist/types/helpers/checks.d.ts +4 -0
- package/dist/types/helpers/exchange.d.ts +7 -1
- package/dist/types/helpers/index.d.ts +2 -2
- package/dist/types/helpers/upstreams.d.ts +123 -181
- package/dist/types/platforms/derive.d.ts +1 -1
- package/dist/types/platforms/fortios/routing.d.ts +2 -2
- package/dist/types/platforms/junos/bgp.d.ts +2 -2
- package/dist/types/platforms/routeros/render.d.ts +4 -0
- package/dist/types/schema/device.d.ts +4 -4
- package/dist/types/schema/firewall.d.ts +5 -1
- package/dist/types/schema/interfaces.d.ts +1 -1
- package/dist/types/schema/policy.d.ts +15 -6
- package/dist/types/schema/routing.d.ts +43 -10
- package/package.json +1 -1
- package/src/cli/index.ts +26 -29
- package/src/core/cabling.ts +0 -30
- package/src/core/define.ts +3 -1
- package/src/core/validator.ts +70 -2
- package/src/helpers/bgp.ts +117 -67
- package/src/helpers/cables.ts +20 -15
- package/src/helpers/checks.ts +23 -0
- package/src/helpers/exchange.ts +9 -3
- package/src/helpers/index.ts +2 -2
- package/src/helpers/upstreams.ts +162 -274
- package/src/platforms/derive.ts +23 -1
- package/src/platforms/fortios/routing.ts +2 -2
- package/src/platforms/junos/bgp.ts +2 -2
- package/src/platforms/routeros/TRAPS.md +4 -0
- package/src/platforms/routeros/export.ts +1 -0
- package/src/platforms/routeros/index.ts +11 -2
- package/src/platforms/routeros/plan.ts +3 -0
- package/src/platforms/routeros/render.ts +28 -3
- package/src/schema/device.ts +4 -3
- package/src/schema/firewall.ts +5 -1
- package/src/schema/interfaces.ts +1 -1
- package/src/schema/policy.ts +17 -6
- package/src/schema/routing.ts +46 -10
- package/templates/colocation/checks.ts +14 -11
- package/templates/colocation/edge-01.ts +2 -2
- package/templates/colocation/tenancy.ts +50 -71
- package/templates/colocation/tenants/acme.ts +10 -10
- package/templates/colocation/tenants/index.ts +2 -1
- package/templates/colocation/tor-01.ts +2 -2
- package/templates/project/AGENTS.md +15 -15
|
@@ -16,21 +16,21 @@ What each field means is written as a comment on the field, in `node_modules/@ta
|
|
|
16
16
|
|
|
17
17
|
## Commands
|
|
18
18
|
|
|
19
|
-
| Command
|
|
20
|
-
|
|
|
21
|
-
| `npx circuit validate`
|
|
22
|
-
| `npx circuit diff [device]`
|
|
23
|
-
| `npx circuit build <device>`
|
|
24
|
-
| `npx circuit snapshot [device]`
|
|
25
|
-
| `npx circuit show <device> '<command>'`
|
|
26
|
-
| `npx circuit bgp [device]
|
|
27
|
-
| `npx circuit console <device> '<line>'`
|
|
28
|
-
| `npx circuit apply <device>`
|
|
29
|
-
| `npx circuit apply <device> --confirm`
|
|
30
|
-
| `npx circuit secrets`
|
|
31
|
-
| `npx circuit rename <device> <new-name>`
|
|
32
|
-
| `npx circuit addresses`
|
|
33
|
-
| `npx circuit graph --layer=all --format=json`
|
|
19
|
+
| Command | What it does | Changes a device |
|
|
20
|
+
| ---------------------------------------------- | ----------------------------------------------------------------------------- | ---------------- |
|
|
21
|
+
| `npx circuit validate` | Checks every file and every rule in the checks | no |
|
|
22
|
+
| `npx circuit diff [device]` | Shows what would change, compared with the last snapshot | no |
|
|
23
|
+
| `npx circuit build <device>` | Prints the full configuration the device should run | no |
|
|
24
|
+
| `npx circuit snapshot [device]` | Reads what each device runs now into `.circuit/state/` | no, only reads |
|
|
25
|
+
| `npx circuit show <device> '<command>'` | Runs commands that only read on the device, secrets hidden | no, only reads |
|
|
26
|
+
| `npx circuit bgp [device] --neighbors <regex>` | Each BGP neighbor in the config next to its live session: up or down | no, only reads |
|
|
27
|
+
| `npx circuit console <device> '<line>'` | Sends lines to the device's serial console, unchecked | **can** |
|
|
28
|
+
| `npx circuit apply <device>` | Reads the device, then shows what would change on it | no |
|
|
29
|
+
| `npx circuit apply <device> --confirm` | Sends the change to the device | **yes** |
|
|
30
|
+
| `npx circuit secrets` | Lists every secret the config uses, and whether each one can be read | no |
|
|
31
|
+
| `npx circuit rename <device> <new-name>` | Shows every line a new device name changes; `--confirm` writes them | no |
|
|
32
|
+
| `npx circuit addresses` | Every address the config uses, by prefix, and what is still free | no |
|
|
33
|
+
| `npx circuit graph --layer=all --format=json` | The whole network as a graph: cables, VLANs, addresses, BGP, OSPF and tunnels | no |
|
|
34
34
|
|
|
35
35
|
## Making a change
|
|
36
36
|
|