Usage
CI/CD Integration
Section titled “CI/CD Integration”The tool can easily be integrated with CI/CD workflows. Arguments can either be provided via command line or environment variables. The tool will exit with a non-zero exit code in case of an error or non-suppressed events being discovered during the pre-change analysis. The --output-summary and --output-url arguments can be used to write a summary and/or a link (URL) to a file, which can then be embedded into notifications (e.g., Webex).
Network as Code Integration
Section titled “Network as Code Integration”Network as Code allows users to instantiate network fabrics in minutes using an easy to use, opinionated data model. A planned change can be validated before applying it to a production environment by running a terraform plan operation first and then providing the output to nexus-pcv to trigger a pre-change validation.
export PCV_HOSTNAME_IP=10.1.1.1export PCV_USERNAME=adminexport PCV_PASSWORD=Cisco123export PCV_GROUP=LABexport PCV_SITE=LAB1terraform plan -out=plan.tfplanterraform show -json plan.tfplan > plan.jsonnexus-pcv --name "PCV1" --nac-tf-plan plan.json