Terraform for Cisco IOS XE: Network Automation
Automate Cisco IOS XE devices with Terraform: ciscodevnet/iosxe provider, RESTCONF/NETCONF, configuration drift management, and CI-driven changes.
DevOps
Automate Juniper Junos devices with Terraform: junipernetworks/junos provider, NETCONF, commit-confirmed workflows, and EVPN-VXLAN fabrics.
Part of the On-Prem & Homelab hub: Terraform and OpenTofu for hypervisors, NAS and network devices.
Juniper Junos runs MX, QFX, EX, SRX, and PTX. Junos's commit confirmed is the safest network change model in the industry, and the junipernetworks/junos Terraform provider exposes it cleanly.
For multi-vendor overview see Cisco / Junos / Arista combined automation.
terraform {
required_providers {
junos = {
source = "Juniper/junos"
version = "~> 1.4"
}
}
}
provider "junos" {
alias = "leaf1"
ip = var.device_ip
username = var.username
sshkey_file = var.ssh_key
}resource "junos_vlan" "users" {
provider = junos.leaf1
name = "users"
vlan_id = 100
}
resource "junos_interface_logical" "ge_0_0_5_0" {
provider = junos.leaf1
name = "ge-0/0/5.0"
description = "user-port"
family_ethernet_switching {
interface_mode = "access"
vlan {
members = ["users"]
}
}
}resource "junos_routing_instance" "tenant_blue" {
provider = junos.leaf1
name = "tenant-blue"
type = "vrf"
route_distinguisher = "65001:100"
vrf_target = "target:65001:100"
}provider "junos" {
alias = "leaf1-confirm"
ip = var.device_ip
username = var.username
sshkey_file = var.ssh_key
commit_confirmed = 5 # auto-rollback in 5 min if not re-committed
}commit_confirmed in production — saves you from your own typos.commit_check before apply.Automate Cisco IOS XE devices with Terraform: ciscodevnet/iosxe provider, RESTCONF/NETCONF, configuration drift management, and CI-driven changes.
Automate Arista EOS switches with Terraform: aristanetworks/cvp provider, CloudVision Studios, configlet management, and EVPN fabric automation.
Automate Cisco Nexus NX-OS data-center switches with Terraform: VXLAN EVPN, vPC, leaf-spine fabrics, and ACI-adjacent automation.
Use Terraform to automate MikroTik RouterOS configuration: firewall rules, VPNs, BGP, DHCP, and edge routers declaratively.