@takodotid/circuit 0.18.1 → 0.18.2

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/cli/index.js CHANGED
@@ -2279,6 +2279,7 @@ function bgpConnections(out, ctx) {
2279
2279
  connect: settings.passive ? "no" : undefined,
2280
2280
  "hold-time": settings.hold_time ? duration(settings.hold_time) : undefined,
2281
2281
  "input.filter": chainName(settings.import ?? REJECT_ALL, family),
2282
+ instance: "default",
2282
2283
  [`input.limit-process-routes-${family}`]: settings.max_prefixes,
2283
2284
  "keepalive-time": settings.keepalive ? duration(settings.keepalive) : undefined,
2284
2285
  listen: settings.passive ? "yes" : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takodotid/circuit",
3
- "version": "0.18.1",
3
+ "version": "0.18.2",
4
4
  "description": "Declarative, vendor-neutral network configuration: describe each device in TypeScript, and Circuit makes the device match. Alpha.",
5
5
  "keywords": [
6
6
  "network",
@@ -7,7 +7,7 @@ Behaviour that looks like something else. Each one has been hit on a real device
7
7
  - `[find address=X/Y]` unquoted matches nothing, silently. Every selector the plan builds is quoted.
8
8
  - `~` in `find` has no anchors. Match exactly.
9
9
  - A property of the same group is printed as a bare suffix, `output.filter-chain=X .network=Y`, which only reads back inside that command. The parser expands it before building a `set`.
10
- - `/routing bgp connection add` without `local.role` is refused, so the render always states one.
10
+ - `/routing bgp connection add` without `local.role` is refused, so the render always states one. On 7.23 one without `instance` is refused too, `missing value(s) of argument(s) instance`, although the export never prints `instance=default`.
11
11
  - A connection without `input.filter` accepts everything. A neighbor without a policy is given `REJECT-ALL`.
12
12
  - A session edited repeatedly can stick: SYN both ways, no RST, no log. Remove the connection and add it again.
13
13
  - A session that never established is missing from `/routing bgp session print`; look at `/routing bgp connection print`.
@@ -1141,6 +1141,8 @@ function bgpConnections(out: Output, ctx: Context): void {
1141
1141
  connect: settings.passive ? "no" : undefined,
1142
1142
  "hold-time": settings.hold_time ? duration(settings.hold_time) : undefined,
1143
1143
  "input.filter": chainName(settings.import ?? REJECT_ALL, family),
1144
+ // The one instance bgpInstance adds. 7.23 refuses a new connection without it.
1145
+ instance: "default",
1144
1146
  [`input.limit-process-routes-${family}`]: settings.max_prefixes,
1145
1147
  "keepalive-time": settings.keepalive ? duration(settings.keepalive) : undefined,
1146
1148
  listen: settings.passive ? "yes" : undefined,