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 nxos_ospf_vrf resource & data-source #199

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Add `nxos_vpc_keepalive` resource and data source
- Add `nxos_vpc_peerlink` resource and data source
- Fix `bandwidth_reference_unit` of `nxos_ospf_vrf` resource and data source

## 0.5.1

Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/ospf_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ data "nxos_ospf_vrf" "example" {

- `admin_state` (String) Administrative state.
- `bandwidth_reference` (Number) Bandwidth reference value.
- `banwidth_reference_unit` (String) Bandwidth reference unit.
- `bandwidth_reference_unit` (String) Bandwidth reference unit.
- `distance` (Number) Administrative distance preference.
- `id` (String) The distinguished name of the object.
- `router_id` (String) Router ID.
16 changes: 8 additions & 8 deletions docs/resources/ospf_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ This resource can manage the OSPF VRF configuration.

```terraform
resource "nxos_ospf_vrf" "example" {
instance_name = "OSPF1"
name = "VRF1"
admin_state = "enabled"
bandwidth_reference = 400000
banwidth_reference_unit = "mbps"
distance = 110
router_id = "34.56.78.90"
instance_name = "OSPF1"
name = "VRF1"
admin_state = "enabled"
bandwidth_reference = 400000
bandwidth_reference_unit = "mbps"
distance = 110
router_id = "34.56.78.90"
}
```

Expand All @@ -62,7 +62,7 @@ resource "nxos_ospf_vrf" "example" {
- `bandwidth_reference` (Number) Bandwidth reference value.
- Range: `0`-`4294967295`
- Default value: `40000`
- `banwidth_reference_unit` (String) Bandwidth reference unit.
- `bandwidth_reference_unit` (String) Bandwidth reference unit.
- Choices: `mbps`, `gbps`
- Default value: `mbps`
- `device` (String) A device name from the provider configuration.
Expand Down
14 changes: 7 additions & 7 deletions examples/resources/nxos_ospf_vrf/resource.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
resource "nxos_ospf_vrf" "example" {
instance_name = "OSPF1"
name = "VRF1"
admin_state = "enabled"
bandwidth_reference = 400000
banwidth_reference_unit = "mbps"
distance = 110
router_id = "34.56.78.90"
instance_name = "OSPF1"
name = "VRF1"
admin_state = "enabled"
bandwidth_reference = 400000
bandwidth_reference_unit = "mbps"
distance = 110
router_id = "34.56.78.90"
}
2 changes: 1 addition & 1 deletion gen/definitions/ospf_vrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ attributes:
description: 'Bandwidth reference value.'
example: 400000
- nxos_name: bwRefUnit
tf_name: banwidth_reference_unit
tf_name: bandwidth_reference_unit
type: String
description: 'Bandwidth reference unit.'
enum_values:
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/data_source_nxos_ospf_vrf.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/provider/data_source_nxos_ospf_vrf_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/provider/data_source_nxos_vpc_peerlink_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 14 additions & 14 deletions internal/provider/model_nxos_ospf_vrf.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/provider/resource_nxos_ospf_vrf.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/provider/resource_nxos_ospf_vrf_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions internal/provider/resource_nxos_vpc_peerlink_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ description: |-

- Add `nxos_vpc_keepalive` resource and data source
- Add `nxos_vpc_peerlink` resource and data source
- Fix `bandwidth_reference_unit` of `nxos_ospf_vrf` resource and data source

## 0.5.1

Expand Down
Loading