Skip to content
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ website/vendor
*.winfile eol=crlf

gen/full_definitions
test-epic-*.tf
36 changes: 36 additions & 0 deletions docs/data-sources/bgp_address_family_vpnv4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "iosxe_bgp_address_family_vpnv4 Data Source - terraform-provider-iosxe"
subcategory: "BGP"
description: |-
This data source can read the BGP Address Family VPNv4 configuration.
---

# iosxe_bgp_address_family_vpnv4 (Data Source)

This data source can read the BGP Address Family VPNv4 configuration.

## Example Usage

```terraform
data "iosxe_bgp_address_family_vpnv4" "example" {
asn = "65000"
af_name = "unicast"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `af_name` (String)
- `asn` (String)

### Optional

- `device` (String) A device name from the provider configuration.

### Read-Only

- `id` (String) The path of the retrieved object.
36 changes: 36 additions & 0 deletions docs/data-sources/bgp_address_family_vpnv6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "iosxe_bgp_address_family_vpnv6 Data Source - terraform-provider-iosxe"
subcategory: "BGP"
description: |-
This data source can read the BGP Address Family VPNv6 configuration.
---

# iosxe_bgp_address_family_vpnv6 (Data Source)

This data source can read the BGP Address Family VPNv6 configuration.

## Example Usage

```terraform
data "iosxe_bgp_address_family_vpnv6" "example" {
asn = "65000"
af_name = "unicast"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `af_name` (String)
- `asn` (String)

### Optional

- `device` (String) A device name from the provider configuration.

### Read-Only

- `id` (String) The path of the retrieved object.
48 changes: 48 additions & 0 deletions docs/resources/bgp_address_family_vpnv4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "iosxe_bgp_address_family_vpnv4 Resource - terraform-provider-iosxe"
subcategory: "BGP"
description: |-
This resource can manage the BGP Address Family VPNv4 configuration.
---

# iosxe_bgp_address_family_vpnv4 (Resource)

This resource can manage the BGP Address Family VPNv4 configuration.

## Example Usage

```terraform
resource "iosxe_bgp_address_family_vpnv4" "example" {
asn = "65000"
af_name = "unicast"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `af_name` (String) - Choices: `flowspec`, `multicast`, `unicast`
- `asn` (String)

### Optional

- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`.
- Choices: `all`, `attributes`
- `device` (String) A device name from the provider configuration.

### Read-Only

- `id` (String) The path of the object.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
terraform import iosxe_bgp_address_family_vpnv4.example "<asn>,<af_name>"
```
48 changes: 48 additions & 0 deletions docs/resources/bgp_address_family_vpnv6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "iosxe_bgp_address_family_vpnv6 Resource - terraform-provider-iosxe"
subcategory: "BGP"
description: |-
This resource can manage the BGP Address Family VPNv6 configuration.
---

# iosxe_bgp_address_family_vpnv6 (Resource)

This resource can manage the BGP Address Family VPNv6 configuration.

## Example Usage

```terraform
resource "iosxe_bgp_address_family_vpnv6" "example" {
asn = "65000"
af_name = "unicast"
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `af_name` (String) - Choices: `flowspec`, `multicast`, `unicast`
- `asn` (String)

### Optional

- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`.
- Choices: `all`, `attributes`
- `device` (String) A device name from the provider configuration.

### Read-Only

- `id` (String) The path of the object.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
terraform import iosxe_bgp_address_family_vpnv6.example "<asn>,<af_name>"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "iosxe_bgp_address_family_vpnv4" "example" {
asn = "65000"
af_name = "unicast"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data "iosxe_bgp_address_family_vpnv6" "example" {
asn = "65000"
af_name = "unicast"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import iosxe_bgp_address_family_vpnv4.example "<asn>,<af_name>"
4 changes: 4 additions & 0 deletions examples/resources/iosxe_bgp_address_family_vpnv4/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "iosxe_bgp_address_family_vpnv4" "example" {
asn = "65000"
af_name = "unicast"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import iosxe_bgp_address_family_vpnv6.example "<asn>,<af_name>"
4 changes: 4 additions & 0 deletions examples/resources/iosxe_bgp_address_family_vpnv6/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "iosxe_bgp_address_family_vpnv6" "example" {
asn = "65000"
af_name = "unicast"
}
16 changes: 16 additions & 0 deletions gen/definitions/bgp_address_family_vpnv4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: BGP Address Family VPNv4
path: /Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp[id=%v]/address-family/no-vrf/vpnv4[af-name=%s]
doc_category: BGP
attributes:
- yang_name: id
tf_name: asn
example: 65000
- yang_name: af-name
example: unicast
test_prerequisites:
- path: /Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp[id=65000]
attributes:
- name: id
value: 65000

16 changes: 16 additions & 0 deletions gen/definitions/bgp_address_family_vpnv6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: BGP Address Family VPNv6
path: /Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp[id=%v]/address-family/no-vrf/vpnv6[af-name=%s]
doc_category: BGP
attributes:
- yang_name: id
tf_name: asn
example: 65000
- yang_name: af-name
example: unicast
test_prerequisites:
- path: /Cisco-IOS-XE-native:native/router/Cisco-IOS-XE-bgp:bgp[id=65000]
attributes:
- name: id
value: 65000

151 changes: 151 additions & 0 deletions internal/provider/data_source_iosxe_bgp_address_family_vpnv4.go

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

Loading