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

ipv6 route enhancement #540

Merged
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