Skip to content

Commit

Permalink
fix: Add SNMP Settings (#242)
Browse files Browse the repository at this point in the history
Fixes #232
  • Loading branch information
vaerh committed Jul 20, 2023
1 parent 4352d70 commit e3a0d36
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit e3a0d36

Please sign in to comment.