Skip to content

Commit

Permalink
MIST-118561 - adding gateway VRF and fixing switch VRF
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Jul 26, 2024
1 parent b510c47 commit e3f28aa
Show file tree
Hide file tree
Showing 30 changed files with 2,619 additions and 48 deletions.
20 changes: 20 additions & 0 deletions docs/resources/device_gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ resource "mist_device_gateway" "gateway_one" {
- `tunnel_configs` (Attributes Map) Property key is the tunnel name (see [below for nested schema](#nestedatt--tunnel_configs))
- `tunnel_provider_options` (Attributes) (see [below for nested schema](#nestedatt--tunnel_provider_options))
- `vars` (Map of String) a dictionary of name->value, the vars can then be used in Wlans. This can overwrite those from Site Vars
- `vrf_config` (Attributes) (see [below for nested schema](#nestedatt--vrf_config))
- `vrf_instances` (Attributes Map) Property key is the network name (see [below for nested schema](#nestedatt--vrf_instances))
- `x` (Number) x in pixel
- `y` (Number) y in pixel

Expand Down Expand Up @@ -901,3 +903,21 @@ Optional:
- `upload_mbps` (Number) the download bandwidth cap of the link, in Mbps




<a id="nestedatt--vrf_config"></a>
### Nested Schema for `vrf_config`

Optional:

- `enabled` (Boolean) whether to enable VRF (when supported on the device)


<a id="nestedatt--vrf_instances"></a>
### Nested Schema for `vrf_instances`

Optional:

- `networks` (List of String)


20 changes: 20 additions & 0 deletions docs/resources/org_deviceprofile_gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ resource "mist_org_deviceprofile_gateway" "deviceprofile_gw_one" {
- `service_policies` (Attributes List) (see [below for nested schema](#nestedatt--service_policies))
- `tunnel_configs` (Attributes Map) Property key is the tunnel name (see [below for nested schema](#nestedatt--tunnel_configs))
- `tunnel_provider_options` (Attributes) (see [below for nested schema](#nestedatt--tunnel_provider_options))
- `vrf_config` (Attributes) (see [below for nested schema](#nestedatt--vrf_config))
- `vrf_instances` (Attributes Map) Property key is the network name (see [below for nested schema](#nestedatt--vrf_instances))

### Read-Only

Expand Down Expand Up @@ -927,3 +929,21 @@ Optional:
- `upload_mbps` (Number) the download bandwidth cap of the link, in Mbps




<a id="nestedatt--vrf_config"></a>
### Nested Schema for `vrf_config`

Optional:

- `enabled` (Boolean) whether to enable VRF (when supported on the device)


<a id="nestedatt--vrf_instances"></a>
### Nested Schema for `vrf_instances`

Optional:

- `networks` (List of String)


20 changes: 20 additions & 0 deletions docs/resources/org_gatewaytemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ resource "mist_org_gatewaytemplate" "gatewaytemplate_one" {
- `tunnel_configs` (Attributes Map) Property key is the tunnel name (see [below for nested schema](#nestedatt--tunnel_configs))
- `tunnel_provider_options` (Attributes) (see [below for nested schema](#nestedatt--tunnel_provider_options))
- `type` (String)
- `vrf_config` (Attributes) (see [below for nested schema](#nestedatt--vrf_config))
- `vrf_instances` (Attributes Map) Property key is the network name (see [below for nested schema](#nestedatt--vrf_instances))

### Read-Only

Expand Down Expand Up @@ -922,3 +924,21 @@ Optional:
- `upload_mbps` (Number) the download bandwidth cap of the link, in Mbps




<a id="nestedatt--vrf_config"></a>
### Nested Schema for `vrf_config`

Optional:

- `enabled` (Boolean) whether to enable VRF (when supported on the device)


<a id="nestedatt--vrf_instances"></a>
### Nested Schema for `vrf_instances`

Optional:

- `networks` (List of String)


2 changes: 1 addition & 1 deletion docs/resources/org_nacrule.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ resource "mist_org_nacrule" "nacrule_one" {

- `action` (String)
- `name` (String)
- `order` (Number) the order of the rule, lower value implies higher priority
- `org_id` (String)

### Optional
Expand All @@ -50,7 +51,6 @@ resource "mist_org_nacrule" "nacrule_one" {
- `enabled` (Boolean) enabled or not
- `matching` (Attributes) (see [below for nested schema](#nestedatt--matching))
- `not_matching` (Attributes) (see [below for nested schema](#nestedatt--not_matching))
- `order` (Number) the order of the rule, lower value implies higher priority

### Read-Only

Expand Down
6 changes: 3 additions & 3 deletions docs/resources/org_networktemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,11 @@ Optional:

Optional:

- `extra_routes` (Attributes Map) Property key is the destination CIDR (e.g. "10.0.0.0/8") (see [below for nested schema](#nestedatt--vrf_instances--extra_routes))
- `networks` (List of String)
- `vrf_extra_routes` (Attributes Map) Property key is the destination CIDR (e.g. "10.0.0.0/8") (see [below for nested schema](#nestedatt--vrf_instances--vrf_extra_routes))

<a id="nestedatt--vrf_instances--vrf_extra_routes"></a>
### Nested Schema for `vrf_instances.vrf_extra_routes`
<a id="nestedatt--vrf_instances--extra_routes"></a>
### Nested Schema for `vrf_instances.extra_routes`

Required:

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
github.com/hashicorp/terraform-plugin-go v0.23.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/tmunzer/mistapi-go v0.2.30
github.com/tmunzer/mistapi-go v0.2.31
golang.org/x/net v0.27.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/tmunzer/mistapi-go v0.2.30 h1:ClfBkVgE0p93TR2/91mPgJrD2NxmnkZ8ofC72OjwAXs=
github.com/tmunzer/mistapi-go v0.2.30/go.mod h1:L85t86nrbWnZ+7uv4EpEbra9psqHQIE+ugBqHGNCmGA=
github.com/tmunzer/mistapi-go v0.2.31 h1:Vyo+jx3F+fMuXXYdeYA+pJ5P2LEO8IIyXMvWV0aJFbU=
github.com/tmunzer/mistapi-go v0.2.31/go.mod h1:L85t86nrbWnZ+7uv4EpEbra9psqHQIE+ugBqHGNCmGA=
github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8=
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
Expand Down
Loading

0 comments on commit e3f28aa

Please sign in to comment.