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

resource iosxe_snmp_server attribute source_interface_traps_vlan not read after apply #141

Open
sthoneder opened this issue Mar 27, 2024 · 0 comments

Comments

@sthoneder
Copy link

When using resource iosxe_snmp_server, the configuration is applied. However on subsequent run, terraform again wants to add attribute source_interface_traps_vlan.

Using
C9300 17.9.4a
provider[registry.terraform.io/ciscodevnet/iosxe] >= 0.5.5
provider[registry.terraform.io/netascode/utils] >= 0.2.4

Existing device configuration

switch-terra#show run | i snmp-server trap-source
snmp-server trap-source Vlan10

terraform subsequent apply output

 # iosxe_snmp_server.snmp_config will be updated in-place
  ~ resource "iosxe_snmp_server" "snmp_config" {
      + enable_traps_power_ethernet_group            = "1"
        id                                           = "Cisco-IOS-XE-native:native/snmp-server"
      + source_interface_traps_vlan                  = 10
        # (113 unchanged attributes hidden)
    }

Resource definition

resource "iosxe_snmp_server" "snmp_config" {

  ...
   system_shutdown                         = true
   source_interface_traps_vlan = "10"
...
enable_traps_energywise = true
   enable_traps_power_ethernet_group = "1"
   enable_traps_power_ethernet_police = true
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant