Skip to content

Commit

Permalink
fix: supress hw offload writable
Browse files Browse the repository at this point in the history
Added check_gateway on ipv6 route (#540)

Signed-off-by: dn <[email protected]>
  • Loading branch information
danielnachtrub authored Aug 23, 2024
1 parent 256dcbb commit 6c358eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/resources/ipv6_route.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "routeros_ipv6_route" "a_route" {
### Optional

- `blackhole` (Boolean) It's a blackhole route. If you need to cancel route marking, then simply delete the parameter from the configuration of the TF. The value of the parameter (true or false) has no effect on the MT processing logic.
- `check_gateway` (String) Currently used check-gateway option.
- `comment` (String)
- `disabled` (Boolean)
- `distance` (Number) Value used in route selection. Routes with smaller distance value are given preference.
Expand All @@ -28,6 +29,7 @@ resource "routeros_ipv6_route" "a_route" {
- `scope` (Number) Used in nexthop resolution. Route can resolve nexthop only through routes that have scope less than or equal to the target-scope of this route.
- `target_scope` (Number) Used in nexthop resolution. This is the maximum value of scope for a route through which a nexthop of this route can be resolved.
- `vrf_interface` (String) VRF interface name.
- `suppress_hw_offload` (Boolean)

### Read-Only

Expand All @@ -39,7 +41,6 @@ resource "routeros_ipv6_route" "a_route" {
- `immediate_gw` (String) Shows actual (resolved) gateway and interface that will be used for packet forwarding.
- `inactive` (Boolean)
- `static` (Boolean)
- `suppress_hw_offload` (Boolean)

## Import
Import is supported using the following syntax:
Expand Down
8 changes: 7 additions & 1 deletion routeros/resource_ipv6_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ func ResourceIPv6Route() *schema.Resource {
"parameter from the configuration of the TF. The value of the parameter (true or false) has no " +
"effect on the MT processing logic.",
},
"check_gateway": {
Type: schema.TypeString,
Optional: true,
Description: "Currently used check-gateway option.",
ValidateFunc: validation.StringInSlice([]string{"arp", "bfd", "ping"}, false),
},
KeyComment: PropCommentRw,
KeyDisabled: PropDisabledRw,
"distance": {
Expand Down Expand Up @@ -92,7 +98,7 @@ func ResourceIPv6Route() *schema.Resource {
},
"suppress_hw_offload": {
Type: schema.TypeBool,
Computed: true,
Optional: true,
},
"target_scope": {
Type: schema.TypeInt,
Expand Down

0 comments on commit 6c358eb

Please sign in to comment.