Skip to content

Commit

Permalink
Add TAG to IPV4 interface IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmuller committed Jan 10, 2025
1 parent ce073e6 commit 9572e81
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/ipv4_interface_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ data "nxos_ipv4_interface_address" "example" {
### Read-Only

- `id` (String) The distinguished name of the object.
- `tag` (Number) Route Tag
- `type` (String) Address type.
3 changes: 3 additions & 0 deletions docs/resources/ipv4_interface_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ resource "nxos_ipv4_interface_address" "example" {
interface_id = "eth1/10"
address = "24.63.46.49/30"
type = "primary"
tag = 1234
}
```

Expand All @@ -42,6 +43,8 @@ resource "nxos_ipv4_interface_address" "example" {
### Optional

- `device` (String) A device name from the provider configuration.
- `tag` (Number) Route Tag
- Default value: `0`
- `type` (String) Address type.
- Choices: `primary`, `secondary`
- Default value: `primary`
Expand Down
1 change: 1 addition & 0 deletions examples/resources/nxos_ipv4_interface_address/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ resource "nxos_ipv4_interface_address" "example" {
interface_id = "eth1/10"
address = "24.63.46.49/30"
type = "primary"
tag = 1234
}
6 changes: 6 additions & 0 deletions gen/definitions/ipv4_interface_address.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ attributes:
- secondary
default_value: 'primary'
example: 'primary'
- nxos_name: tag
tf_name: tag
type: Int64
description: 'Route Tag'
default_value: 0
example: 1234
test_prerequisites:
- dn: sys/intf/phys-[eth1/10]
class_name: l1PhysIf
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/data_source_nxos_ipv4_interface_address.go

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

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

10 changes: 10 additions & 0 deletions internal/provider/model_nxos_ipv4_interface_address.go

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

7 changes: 7 additions & 0 deletions internal/provider/resource_nxos_ipv4_interface_address.go

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

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

0 comments on commit 9572e81

Please sign in to comment.