Skip to content

CiscoDevNet/terraform-provider-iosxe

Tests

Terraform Provider IOS-XE

The IOSXE provider provides resources to interact with one or more Cisco IOS-XE devices.

Please note that this Terraform provider is developed and maintained by a dedicated community of contributors. It is not directly supported by Cisco. While we strive to ensure the provider is robust and reliable, its development relies on community contributions and engagement.

All resources and data sources have been tested with the following releases.

Platform Version
Catalyst 8000v 17.12.4
Catalyst 8000v 17.15.3
Catalyst 9000v 17.15.1

Documentation: https://registry.terraform.io/providers/CiscoDevNet/iosxe/latest

Requirements

Support

As this is a community-driven project, support is provided by the community. If you encounter issues or have questions, please use the following resources:

  • GitHub Issues: Report bugs or request features on our GitHub Issues page.
  • Discussion Forums: Engage with other users and contributors on GitHub Discussions.

Contributing

We welcome contributions from the community! If you'd like to contribute, please follow our contribution guidelines. Whether it's reporting bugs, suggesting features, or submitting pull requests, your involvement helps improve the project for everyone.

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Adding Dependencies

This provider uses Go modules. Please see the Go documentation for the most up to date information about using Go modules.

To add a new dependency github.com/author/dependency to your Terraform provider:

go get github.com/author/dependency
go mod tidy

Then commit the changes to go.mod and go.sum.

Using the provider

This Terraform Provider is available to install automatically via terraform init. If you're building the provider, follow the instructions to install it as a plugin. After placing it into your plugins directory, run terraform init to initialize it.

Additional documentation, including available resources and their arguments/attributes can be found on the Terraform documentation website.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

More information about how the code generation works can be found in the contribution guide.

Acceptance tests

In order to run the full suite of acceptance tests, run make testall. Make sure the respective environment variables are set (e.g., MERAKI_API_KEY).

Note: Acceptance tests create real resources.

make testall

More information about how the acceptance tests work can be found in the contribution guide.