-
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.
Additional bgp, ospf and ethernet resources (#241)
- Loading branch information
Showing
41 changed files
with
1,116 additions
and
27 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,41 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nxos_bgp_peer_local_asn Data Source - terraform-provider-nxos" | ||
subcategory: "BGP" | ||
description: |- | ||
This data source can read the BGP peer local asn configuration. | ||
API Documentation: bgpLocalAsn https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/bgp:localasn/ | ||
--- | ||
|
||
# nxos_bgp_peer_local_asn (Data Source) | ||
|
||
This data source can read the BGP peer local asn configuration. | ||
|
||
- API Documentation: [bgpLocalAsn](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/bgp:localasn/) | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "nxos_bgp_peer_local_asn" "example" { | ||
vrf = "default" | ||
address = "192.168.0.1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `address` (String) Peer address. | ||
- `vrf` (String) VRF name. | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `asn_propagation` (String) ASN Propagation. | ||
- `id` (String) The distinguished name of the object. | ||
- `local_asn` (String) Local Autonomous system number. |
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
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,59 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "nxos_bgp_peer_local_asn Resource - terraform-provider-nxos" | ||
subcategory: "BGP" | ||
description: |- | ||
This resource can manage the BGP peer local asn configuration. | ||
API Documentation: bgpLocalAsn https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/bgp:localasn/ | ||
Parent resources | ||
nxos_bgp_peer https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_peer | ||
--- | ||
|
||
# nxos_bgp_peer_local_asn (Resource) | ||
|
||
This resource can manage the BGP peer local asn configuration. | ||
|
||
- API Documentation: [bgpLocalAsn](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/bgp:localasn/) | ||
|
||
### Parent resources | ||
|
||
- [nxos_bgp_peer](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/bgp_peer) | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "nxos_bgp_peer_local_asn" "example" { | ||
asn_propagation = "prepend" | ||
local_asn = "65001" | ||
vrf = "default" | ||
address = "192.168.0.1" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `address` (String) Peer address. | ||
- `local_asn` (String) Local Autonomous system number. | ||
- `vrf` (String) VRF name. | ||
|
||
### Optional | ||
|
||
- `asn_propagation` (String) ASN Propagation. | ||
- Choices: `none`, `no-prepend`, `replace-as`, `dual-as` | ||
- Default value: `none` | ||
- `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_bgp_peer_local_asn.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]/localasn" | ||
``` |
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,4 @@ | ||
data "nxos_bgp_peer_local_asn" "example" { | ||
vrf = "default" | ||
address = "192.168.0.1" | ||
} |
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 |
---|---|---|
@@ -1,12 +1,16 @@ | ||
resource "nxos_bgp_peer" "example" { | ||
asn = "65001" | ||
vrf = "default" | ||
address = "192.168.0.1" | ||
remote_asn = "65002" | ||
description = "My description" | ||
peer_template = "SPINE-PEERS" | ||
peer_type = "fabric-internal" | ||
source_interface = "lo0" | ||
hold_time = 45 | ||
keepalive = 15 | ||
asn = "65001" | ||
vrf = "default" | ||
address = "192.168.0.1" | ||
remote_asn = "65002" | ||
description = "My description" | ||
peer_template = "SPINE-PEERS" | ||
peer_type = "fabric-internal" | ||
source_interface = "lo0" | ||
hold_time = 45 | ||
keepalive = 15 | ||
ebgp_multihop_ttl = 5 | ||
peer_control = "bfd" | ||
password_type = "LINE" | ||
password = "secret_password" | ||
} |
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_bgp_peer_local_asn.example "sys/bgp/inst/dom-[default]/peer-[192.168.0.1]/localasn" |
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,6 @@ | ||
resource "nxos_bgp_peer_local_asn" "example" { | ||
asn_propagation = "prepend" | ||
local_asn = "65001" | ||
vrf = "default" | ||
address = "192.168.0.1" | ||
} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
resource "nxos_ethernet" "example" { | ||
mtu = 9216 | ||
mtu = 9216 | ||
default_admin_status = "up" | ||
} |
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
Oops, something went wrong.