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

Add TAG to IPV4 interface IP address #294

Merged
merged 1 commit into from
Jan 12, 2025
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 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.

Loading