Closed dsx1123 closed 2 years ago
Hi, I'm getting the following error when I try to deploy a MSD network on DCNM. NDFC works fine.
400 Error : "Invalid Fabric"
I'm adding my code below as well as the output log file.
terraform{
required_providers {
dcnm = {
source = "ciscodevnet/dcnm"
}
}
}
provider "dcnm" {
username = "admin"
password = "ins3965!"
url = "https://172.25.74.71"
insecure = true
platform = "dcnm"
# expiry = 900000
}
data "dcnm_inventory" "fabric1_leaf1" {
fabric_name = "fabric1"
switch_name = "93240YC-FX2-L1-S1"
}
data "dcnm_inventory" "fabric2_leaf1" {
fabric_name = "fabric2"
switch_name = "93240YC-FX2-L1-S2"
}
resource "dcnm_network" "dcnmnetwork" {
fabric_name = "MSDtest"
name = "MSDTestNetwork"
network_id = "31000"
vlan_id = "1000"
vlan_name = "MSD_test"
description = "create from terraform"
vrf_name = "MyVRF_50000"
ipv4_gateway = "1.1.1.3/24"
deploy = true
attachments {
serial_number = data.dcnm_inventory.fabric1_leaf1.serial_number
attach = true
switch_ports = []
}
attachments {
serial_number = data.dcnm_inventory.fabric2_leaf1.serial_number
attach = true
switch_ports = []
}
}
MSD is working on both DCNM and NDFC after running terraform destroy and rebuilding it.
Community Note
Terraform Version
NDFC version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/dsx1123/022028a0d7f8b460c82ef9656012ceb0
Panic Output
Expected Behavior
network should be created
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References