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

fix: Add SNMP Settings #242

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions routeros/resource_snmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ func ResourceSNMP() *schema.Resource {
"trap_community": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Sensitive: true,
Description: "Which communities configured in community menu to use when sending out the trap. " +
"This name must be present in the community list.",
},
"trap_generators": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "What action will generate traps: interfaces - interface changes; start-trap - snmp " +
"server starting on the router.",
ValidateFunc: validation.StringInSlice([]string{"interfaces", "start-trap", "temp-exception"}, false),
Expand All @@ -85,6 +87,7 @@ func ResourceSNMP() *schema.Resource {
"trap_version": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "Version of SNMP protocol to use for trap.",
ValidateFunc: validation.IntBetween(1, 3),
},
Expand Down
Loading