-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
20 changed files
with
732 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nxos_vpc_peerlink Data Source - terraform-provider-nxos" | ||
subcategory: "vPC" | ||
description: |- | ||
This data source can read the vPC peerlink configuration. | ||
API Documentation: vpcPeerLink https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/vpc:PeerLink/ | ||
--- | ||
|
||
# nxos_vpc_peerlink (Data Source) | ||
|
||
This data source can read the vPC peerlink configuration. | ||
|
||
- API Documentation: [vpcPeerLink](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/vpc:PeerLink/) | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "nxos_vpc_peerlink" "example" { | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The distinguished name of the object. | ||
- `port_channel_id` (String) vPC Peerlink port-channel id. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nxos_vpc_peerlink Resource - terraform-provider-nxos" | ||
subcategory: "vPC" | ||
description: |- | ||
This resource can manage the vPC peerlink configuration. | ||
API Documentation: vpcPeerLink https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/vpc:PeerLink/ | ||
Parent resources | ||
nxosvpckeepalive https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/vpc_keepalive | ||
--- | ||
|
||
# nxos_vpc_peerlink (Resource) | ||
|
||
This resource can manage the vPC peerlink configuration. | ||
|
||
- API Documentation: [vpcPeerLink](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/System/vpc:PeerLink/) | ||
|
||
### Parent resources | ||
|
||
- [nxos_vpc_keepalive](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/vpc_keepalive) | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "nxos_vpc_peerlink" "example" { | ||
port_channel_id = "po1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `port_channel_id` (String) vPC Peerlink port-channel id. | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The distinguished name of the object. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import nxos_vpc_peerlink.example "sys/vpc/inst/dom/keepalive/peerlink" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
data "nxos_vpc_peerlink" "example" { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import nxos_vpc_peerlink.example "sys/vpc/inst/dom/keepalive/peerlink" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "nxos_vpc_peerlink" "example" { | ||
port_channel_id = "po1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: vPC Peerlink | ||
class_name: vpcPeerLink | ||
dn: sys/vpc/inst/dom/keepalive/peerlink | ||
ds_description: This data source can read the vPC peerlink configuration. | ||
res_description: This resource can manage the vPC peerlink configuration. | ||
doc_path: System/vpc:PeerLink/ | ||
doc_category: vPC | ||
parents: | ||
- vPC Keepalive | ||
attributes: | ||
- nxos_name: id | ||
tf_name: port_channel_id | ||
type: String | ||
mandatory: true | ||
description: "vPC Peerlink port-channel id." | ||
example: "po1" | ||
test_prerequisites: | ||
- dn: sys/fm/vpc | ||
class_name: fmVpc | ||
no_delete: true | ||
attributes: | ||
- name: adminSt | ||
value: enabled | ||
- dn: sys/vpc/inst | ||
class_name: vpcInst | ||
dependencies: [0] | ||
- dn: sys/vpc/inst/dom | ||
class_name: vpcDom | ||
dependencies: [1] | ||
- dn: sys/vpc/inst/dom/keepalive | ||
class_name: vpcKeepalive | ||
dependencies: [2] | ||
- dn: sys/fm/lacp | ||
class_name: fmLacp | ||
no_delete: true | ||
attributes: | ||
- adminSt: enabled | ||
- dn: sys/intf/aggr-[123] | ||
class_name: pcAggrIf | ||
dependencies: [4] | ||
attributes: | ||
- id: po1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
internal/provider/data_source_nxos_vpc_peerlink_test.go
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters