CiscoDevNet / terraform-provider-dcnm

Cisco DCNM Provider
https://registry.terraform.io/providers/CiscoDevNet/dcnm/latest/docs
Mozilla Public License 2.0
9 stars 16 forks source link

Error: Ethernet interface can only be modified #118

Closed jomuench closed 1 year ago

jomuench commented 1 year ago

Community Note

Terraform Version

Terraform v1.3.5 on linux_amd64

DCNM version

Affected Resource(s)

Terraform Configuration Files

resource "dcnm_interface" "deploy" {
  name          = "Ethernet1/4"
  type          = "ethernet"
  fabric_name   = var.fabric
  policy        = "int_access_host_11_1"
  switch_name_1 = "Leaf1-gns3"

  bpdu_guard_flag = "true"
  mtu             = "jumbo"
  access_vlans    = dcnm_network.overlay_network.vlan_id
}

Debug Output

Plan: 1 to add, 0 to change, 0 to destroy. dcnm_interface.deploy: Creating... ╷ │ Error: Ethernet interface can only be modified │ │ with dcnm_interface.deploy, │ on port.tf line 1, in resource "dcnm_interface" "deploy": │ 1: resource "dcnm_interface" "deploy" { │

Expected Behavior

Ethernet 1/4 to be set to access mode with provided VLAN id.

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

RutvikS-crest commented 1 year ago

This is duplicate to #109, Closing this issue. Thanks for reporting !