Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NDFC - Creating L3 Physical Ethernet Interface fails (or changing a type= Ethernet interface) #109

Open
carello opened this issue Nov 24, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@carello
Copy link

carello commented Nov 24, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

v1.3.5

NDFC version

  • V 12.1.1e

Affected Resource(s)

  • dcnm_interface

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

resource "dcnm_interface" "RtrIntf" {
policy = "int_routed_host_11_1"
type = "ethernet"
name = "Ethernet1/18"
fabric_name = "Demo1"
switch_name_1 = "ev-leaf1"

vrf = "chetVRF1"
ipv4 = "11.12.13.1"
ipv4_prefix = "24"
description = "to WAN"
}

Debug Output

https://gist.github.com/carello/3bc31bf06346e3de02257b9b35cdbae5

Panic Output

Expected Behavior

the interface should be configured as a L3 interface with IP address assigned

Actual Behavior

I get the following error:

dcnm_interface.RtrIntf: Creating...

│ Error: Ethernet interface can only be modified

│ with dcnm_interface.RtrIntf,
│ on dothings.tf line 47, in resource "dcnm_interface" "RtrIntf":
│ 47: resource "dcnm_interface" "RtrIntf" {

There's appears to be an issue with any configuration of an ethernet interface. If I attempt to just change the MTU or Ethernet speed and keep the physical interface as a L2 interface, I have a similar error:

resource "dcnm_interface" "chgPol" {
policy = "int_trunk_host"
type = "ethernet"
name = "Ethernet1/18"
switch_name_1 = "ev-leaf1"
fabric_name = "Demo1"
mtu = "jumbo"
ethernet_speed = "10Gb"
deploy = false
}

-- output---
dcnm_interface.chgPol: Creating...

│ Error: Ethernet interface can only be modified

│ with dcnm_interface.chgPol,
│ on l3.tf line 14, in resource "dcnm_interface" "chgPol":
│ 14: resource "dcnm_interface" "chgPol" {

Steps to Reproduce

Happens all times when I run the script

  1. terraform apply

Important Factoids

I can configure this in the GUI without issue

References

  • #0000
@carello carello changed the title NDFC - Creating L3 Physical Interface fails NDFC - Creating L3 Physical Ethernet Interface fails (or changing an Ethernet interface) Nov 26, 2022
@carello carello changed the title NDFC - Creating L3 Physical Ethernet Interface fails (or changing an Ethernet interface) NDFC - Creating L3 Physical Ethernet Interface fails (or changing a type= Ethernet interface) Nov 26, 2022
@YazhRajesh YazhRajesh added the bug Something isn't working label Dec 1, 2022
RutvikS-crest added a commit that referenced this issue Dec 7, 2022
@RutvikS-crest RutvikS-crest linked a pull request Dec 7, 2022 that will close this issue
@RutvikS-crest RutvikS-crest removed a link to a pull request Dec 14, 2022
@RutvikS-crest RutvikS-crest added enhancement New feature or request and removed bug Something isn't working labels Dec 15, 2022
@RutvikS-crest RutvikS-crest removed their assignment Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants