Terraform will perform the following actions:
# routeros_snmp_community.mything will be updated in-place
~ resource "routeros_snmp_community" "mything" {
~ addresses = [
- "10.0.1.12/32",
+ "10.0.1.12",
+ "10.10.0.129",
]
id = "*1"
name = "mything"
# (7 unchanged attributes hidden)
}
Debug Information
Stack Trace
Additional context
Thanks so much for all this work. I would like to submit a patch but I'm a newbie to Terraform and provider development, see below.
ROS v7.15: I went to do an SNMP community setup and realized the config with comma-separated ips in cidr notation doesn't work e.g. "1.1.1.1,8.8.8.8" or "1.1.1.1/8,8.8.8.8/32" doesn't work. It seems like it's accepting a string, which is fine, but because it's using the ip address validator, the comma-separated list fails.
I did manage to set up a basic dev environment and tried to steal some of the snmp-trap schema that uses a list of addresses into the address part of the routeros_snmp_community definition and a full test with hardware did work, but I wasn't able to figure out how to address the Default value and didn't see any default values with lists or sets in the project.
Anyway, I'd love to contribute but may need a little help on-boarding.
Describe the bug routeros_snmp_community
addresses
doesn't allow multiple address.To Reproduce
Fails validation
Expected behavior
Should yeild
Debug Information
Stack Trace
Additional context
Thanks so much for all this work. I would like to submit a patch but I'm a newbie to Terraform and provider development, see below.
ROS v7.15: I went to do an SNMP community setup and realized the config with comma-separated ips in cidr notation doesn't work e.g.
"1.1.1.1,8.8.8.8"
or"1.1.1.1/8,8.8.8.8/32"
doesn't work. It seems like it's accepting a string, which is fine, but because it's using the ip address validator, the comma-separated list fails.I did manage to set up a basic dev environment and tried to steal some of the
snmp-trap
schema that uses a list of addresses into theaddress
part of therouteros_snmp_community
definition and a full test with hardware did work, but I wasn't able to figure out how to address theDefault
value and didn't see any default values with lists or sets in the project.Anyway, I'd love to contribute but may need a little help on-boarding.