Example Library
This page turns the repository example set into an operator-facing catalog so teams can quickly choose the right starting point.
Why this page exists
The rauto repository ships with a useful but easy-to-miss set of example files under templates/examples/. For enterprise use, it helps to treat them as a structured library instead of a loose collection of sample files.
Example catalog
Command flow examples
cisco-like-command-flow.toml
Use this when the device drives the interaction.
Typical use cases:
copy scp:copy tftp:- multi-prompt file import/export
- confirmation-heavy device operations
What it demonstrates:
- prompt regex patterns
- inline
{{var}}substitution - runtime var schema
- mode selection
- reusable flow storage in SQLite
linux-scp-with-current-and-peer-command-flow.toml
Use this when a Linux host needs to reference both the current execution target and another saved connection.
What it demonstrates:
current_connection_alias- cross-connection references like
{{peer.host}} - runtime vars that point to another saved connection name
- mixed use of current target and peer credentials
Workflow examples
core-vlan-workflow.json
A good first workflow example when introducing tx-workflow into a team.
Best for:
- change blocks with explicit names
- straightforward rollback policies
- structured but readable JSON
fabric-change-workflow.json
A more advanced workflow for teams that already understand the block model and want a richer pattern for fabric or multi-part changes.
Look here when you need:
- multiple blocks with different rollback semantics
- stronger separation of stages within one target workflow
- a reusable source for enterprise change reviews
Linux image workflows
These workflow files model a realistic application or image rollout pipeline on Linux targets:
linux-image-export-and-transfer-workflow.jsonlinux-image-export-and-transfer-with-password-scp-workflow.jsonlinux-image-load-and-restart-workflow.json
These are especially useful when documenting:
- export / package / copy pipelines
- SCP transfer variations
- restart or cutover steps after artifact delivery
Orchestration examples
campus-vlan-orchestration.json
A compact staged rollout example.
Use it to learn:
- stage layout
- serial vs parallel strategy
- action binding to
tx_blockortx_workflow - target selection through saved connections
fabric-advanced-orchestration.json
Use this when the rollout is large enough to need more advanced concurrency and grouping logic.
Typical enterprise scenarios:
- campus or fabric-wide change windows
- phased rollout between core and access layers
- higher parallelism with explicit blast-radius control
linux-image-rollout-orchestration.json
This example is important because it shows that orchestration is not limited to network devices.
Use it to document:
- Linux host batches
- software/image distribution
- staged cutover across multiple machines
Inventory examples
campus-inventory.json
The simplest place to understand inventory structure.
Key ideas:
- global defaults
- group membership
- group membership over saved connection names
- per-target overrides
fabric-advanced-inventory.json
Use this for documenting enterprise inventory modeling.
Key ideas:
- nested defaults
- richer target metadata
- larger grouped topology
- better alignment with staged orchestration
Bulk import templates
connection-import-template-en.csv
connection-import-template-zh.csv
These two files are especially useful for onboarding operators who will not create saved connections one by one.
Recommended documentation use:
- attach them in operational runbooks
- use them for migration from spreadsheets
- standardize connection profile fields before orchestration rollout
Recommended headers:
How to choose the right example
Documentation best practice
For enterprise-grade docs, do not just reference the file name. For each example, also document:
- what production problem it solves
- what assumptions it makes about inventory and saved connections
- which variables must be supplied at runtime
- what rollback or compensation behavior exists
- whether it is device-side interactive, target-local structured, or fleet-wide orchestration