resource iosxe_snmp_server attribute source_interface_traps_vlan not read after apply
Opened this issue · 0 comments
sthoneder commented
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
...
}