[Phase 2] Implement Plan/Apply CLI Commands #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Implement
fabric-orch planandfabric-orch applyCLI commands that provide a Terraform-like experience for managing fabric configuration.Context
These are the primary user-facing commands that bring together intent retrieval from InfraHub, diff computation, and change application via gNMI into a cohesive workflow.
Tasks
fabric-orch plancommandfabric-orch applycommand--devicefilter to target specific devices--resource-typefilter (vlans, interfaces, bgp, etc.)--auto-approveflag for non-interactive apply--branchflag to use InfraHub branch (test changes before merge)--output jsonfor machine-readable outputCLI Interface
Example Output
Implementation
Output Files
src/cli.py(extend existing)src/reconciler/__init__.pysrc/reconciler/diff.pysrc/reconciler/plan.pyAcceptance Criteria
--branchflag allows testing InfraHub branches before mergeDependencies
src/gnmi/client.py)Related