Skip to content

dcnm_inventory doesn't support import #125

@dsx1123

Description

@dsx1123

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

NDFC version

  • V 12.1.2e

Affected Resource(s)

  • dcnm_inventory

Terraform Configuration Files

terraform {
  required_providers {
    dcnm = {
      source  = "CiscoDevNet/dcnm"
      version = "1.2.7"
    }
  }
}

provider "dcnm" {
  username = "admin"
  password = "ins3965!"
  url      = "https://shdu-ndfc-2.cisco.com"
  platform = "nd"
  # expiry   = 900000
}

resource "dcnm_inventory" "fabric" {
  fabric_name     = "fabric_n9kv"
  username        = "admin"
  password        = "ins3965!"
  preserve_config = "false"
  config_timeout  = 15
  switch_config {
    ip   = "192.168.123.10"
    role = "leaf"
  }
  switch_config {
    ip   = "192.168.123.11"
    role = "leaf"
  }
  switch_config {
    ip   = "192.168.123.13"
    role = "border"
  }
  switch_config {
    ip   = "192.168.123.12"
    role = "spine"
  }
}

Debug Output

terraform import dcnm_inventory.fabric fabric_n9kv                                                                                                                   
dcnm_inventory.fabric: Importing from ID "fabric_n9kv"...
╷
│ Error: resource dcnm_inventory doesn't support import

Panic Output

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. terraform import dcnm_inventory.fabric fabric_n9kv

Important Factoids

References

  • #0000

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions