Configuration-change simulation¶
The optional simulator compares the same concrete ingress packet in two prepared Batfish models. Install the wheel with the simulator extra. The operator supplies a dedicated Batfish endpoint and an isolated tenant/version namespace. Hosts must restrict access to the underlying service and its configuration data.
Set OLAV_BATFISH_HOST, OLAV_BATFISH_PORT, OLAV_BATFISH_TENANT and OLAV_BATFISH_VERSION in the host environment. Set OLAV_BATFISH_SSL=true for HTTPS. Prepare one export directory per model. It contains manifest.json and a configs/ directory with exactly one <device>.cfg per exported device and no other files:
{"snapshot_id": "exact-source-sid", "devices_written": ["edge", "core"], "devices_missing": [], "config_count": 2}
snapshot_id must equal the SID given on the command line. devices_written lists unique device names (letters, digits, _, - and ., not starting with .), config_count equals its length and devices_missing must be empty. Any mismatch stops preparation. Olav Skills does not create this directory; produce it from the configurations you have reviewed for the exact snapshot. Run the following once for the baseline and once for a separate candidate copy with the reviewed policy change.
The operator receives a receipt with source SID, namespace, content-bound model identity, config count and parse status counts. Bind the two receipts as the baseline and candidate objects in the host environment variable OLAV_BATFISH_BINDING. The installed skill only runs concrete traceroutes against existing snapshots.
echo '{"flows":[{"node":"edge","interface":"GigabitEthernet1","source":"192.0.2.1","destination":"192.0.2.2","protocol":"TCP","source_port":49152,"destination_port":443}]}' | olav-skills run simulator compare_flows
Interpret the resulting dispositions as one-way modeled packet outcomes. A single accepted destination, definite failure, and mixed or incomplete results are distinguished. The query examines up to eight packets and 32 paths per packet. An incomplete trace set or unresolved partial parse gives an unknown result. For partially recognized files the operator can bind an exact list of reviewed_flows alongside these two receipts after independently checking parsing, conversion and forwarding features for each specified packet on both models. Repeat that review whenever the snapshot pair changes. Packet sampling cannot enumerate all affected business services.
The host can register a list of concrete packets in the binding’s flows field. An empty JSON request compares those packets. The query has a 180-second deadline.