Skip to content

Commit

Permalink
Definition fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Mar 24, 2024
1 parent 8c9c699 commit 23a5cb9
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 24 deletions.
1 change: 1 addition & 0 deletions docs/guides/changelog.md
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
9 changes: 9 additions & 0 deletions docs/resources/vpc_keepalive.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,31 @@ resource "nxos_vpc_keepalive" "example" {
- `device` (String) A device name from the provider configuration.
- `flush_timeout` (Number) vPC Keepalive flush timeout.
- Range: `3`-`10`
- Default value: `3`
- `interval` (Number) vPC Keepalive interval.
- Range: `400`-`10000`
- Default value: `1000`
- `precedence_type` (Number) vPC Keepalive precedence type. `0` - network, `1` - internet, `2` - critical, `3` flash-override, `4` - flash, `5` - immediate, `6` - prioriy, `7` - routine.
- Range: `0`-`7`
- Default value: `0`
- `precedence_value` (Number) vPC Keepalive precedence value.
- Range: `0`-`7`
- Default value: `6`
- `timeout` (Number) vPC Keepalive timeout.
- Range: `3`-`20`
- Default value: `5`
- `type_of_service_byte` (Number) vPC Keepalive type of service (ToS) byte.
- Range: `0`-`255`
- Default value: `0`
- `type_of_service_configuration_type` (Number) vPC Keepalive type of service (ToS) configuration type. `0` - noCfg, `1` - tos-byte, `2` - tos-value, `3` - tos-type, `4` - precedence-type, `5` - precedence-value.
- Range: `0`-`5`
- Default value: `0`
- `type_of_service_type` (Number) vPC Keepalive type of service (ToS) type. `0` - min-delay, `1` - max-throughput, `2` - max-reliability, `3` - min-monetary-cost, `4` - normal.
- Range: `0`-`4`
- Default value: `4`
- `type_of_service_value` (Number) vPC Keepalive type of service (ToS) value.
- Range: `0`-`15`
- Default value: `0`
- `udp_port` (Number) vPC Keepalive UDP port.
- Range: `1`-`65535`
- `vrf` (String) vPC Keepalive VRF.
Expand Down
18 changes: 9 additions & 9 deletions gen/definitions/vpc_keepalive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@ attributes:
description: "vPC Keepalive flush timeout."
min_int: 3
max_int: 10
default: 3
default_value: 3
example: 3
- nxos_name: interval
tf_name: interval
type: Int64
description: "vPC Keepalive interval."
min_int: 400
max_int: 10000
default: 1000
default_value: 1000
example: 1000
- nxos_name: precType
tf_name: precedence_type
type: Int64
description: "vPC Keepalive precedence type. `0` - network, `1` - internet, `2` - critical, `3` flash-override, `4` - flash, `5` - immediate, `6` - prioriy, `7` - routine."
min_int: 0
max_int: 7
default: 0
default_value: 0
example: 0
- nxos_name: precValue
tf_name: precedence_value
type: Int64
description: "vPC Keepalive precedence value."
min_int: 0
max_int: 7
default: 6
default_value: 6
example: 6
- nxos_name: srcIp
tf_name: source_ip
Expand All @@ -61,39 +61,39 @@ attributes:
description: "vPC Keepalive timeout."
min_int: 3
max_int: 20
default: 5
default_value: 5
example: 5
- nxos_name: tosByte
tf_name: type_of_service_byte
type: Int64
description: "vPC Keepalive type of service (ToS) byte."
min_int: 0
max_int: 255
default: 0
default_value: 0
example: 0
- nxos_name: tosCfgType
tf_name: type_of_service_configuration_type
type: Int64
description: "vPC Keepalive type of service (ToS) configuration type. `0` - noCfg, `1` - tos-byte, `2` - tos-value, `3` - tos-type, `4` - precedence-type, `5` - precedence-value."
min_int: 0
max_int: 5
default: 0
default_value: 0
example: 0
- nxos_name: tosType
tf_name: type_of_service_type
type: Int64
description: "vPC Keepalive type of service (ToS) type. `0` - min-delay, `1` - max-throughput, `2` - max-reliability, `3` - min-monetary-cost, `4` - normal."
min_int: 0
max_int: 4
default: 4
default_value: 4
example: 0
- nxos_name: tosValue
tf_name: type_of_service_value
type: Int64
description: "vPC Keepalive type of service (ToS) value."
min_int: 0
max_int: 15
default: 0
default_value: 0
example: 0
- nxos_name: udpPort
tf_name: udp_port
Expand Down
6 changes: 4 additions & 2 deletions gen/definitions/vpc_peerlink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ test_prerequisites:
class_name: fmLacp
no_delete: true
attributes:
- adminSt: enabled
- name: adminSt
value: enabled
- dn: sys/intf/aggr-[123]
class_name: pcAggrIf
dependencies: [4]
attributes:
- id: po1
- name: id
value: po1
4 changes: 2 additions & 2 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.

37 changes: 28 additions & 9 deletions internal/provider/resource_nxos_vpc_keepalive.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_vpc_peerlink_test.go

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

0 comments on commit 23a5cb9

Please sign in to comment.