Skip to content

Commit

Permalink
[minor_change] Add datasource and resource for fvFBRoute in aci_vrf_f…
Browse files Browse the repository at this point in the history
…allback_route and aci_vrf_fallback_route_group
  • Loading branch information
akinross committed Jul 2, 2024
1 parent c9b51cd commit 962f137
Show file tree
Hide file tree
Showing 63 changed files with 20,112 additions and 326 deletions.
2 changes: 1 addition & 1 deletion docs/data-sources/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ data "aci_annotation" "example_application_epg" {
- [aci_endpoint_tag_mac](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_mac) ([fvEpMacTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpMacTag/overview))
- [aci_vrf_fallback_route_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group) ([fvFBRGroup](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRGroup/overview))
- [aci_vrf_fallback_route_group_member](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group_member) ([fvFBRMember](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRMember/overview))
- [aci_vrf_fallback_route](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route) ([fvFBRoute](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRoute/overview))
- [aci_relation_to_consumed_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_consumed_contract) ([fvRsCons](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsCons/overview))
- [aci_relation_to_imported_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_imported_contract) ([fvRsConsIf](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsConsIf/overview))
- [aci_relation_to_intra_epg_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_intra_epg_contract) ([fvRsIntraEpg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsIntraEpg/overview))
Expand All @@ -73,7 +74,6 @@ data "aci_annotation" "example_application_epg" {
- [aci_relation_to_vrf](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_vrf) ([fvRsScope](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsScope/overview))
- [aci_relation_to_contract_master](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_contract_master) ([fvRsSecInherited](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsSecInherited/overview))
- [aci_tenant](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tenant) ([fvTenant](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvTenant/overview))
- [aci_l2out_extepg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l2out_extepg) ([l2extInstP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/l2extInstP/overview))
* `key` (key) - (string) The key used to uniquely identify this configuration object.

### Read-Only ###
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
subcategory: "L3Out"
layout: "aci"
page_title: "ACI: aci_relation_to_fallback_route_group"
sidebar_current: "docs-aci-data-source-aci_relation_to_fallback_route_group"
page_title: "ACI: aci_relation_to_vrf_fallback_route_group"
sidebar_current: "docs-aci-data-source-aci_relation_to_vrf_fallback_route_group"
description: |-
Data source for Relation To Fallback Route Group
Data source for Relation To VRF Fallback Route Group
---

# aci_relation_to_fallback_route_group #
# aci_relation_to_vrf_fallback_route_group #

Data source for Relation To Fallback Route Group
Data source for Relation To VRF Fallback Route Group

## API Information ##

Expand All @@ -30,7 +30,7 @@ Data source for Relation To Fallback Route Group

```hcl
data "aci_relation_to_fallback_route_group" "example_l3_outside" {
data "aci_relation_to_vrf_fallback_route_group" "example_l3_outside" {
parent_dn = aci_l3_outside.example.id
target_dn = aci_vrf_fallback_route_group.example.id
}
Expand All @@ -47,8 +47,8 @@ data "aci_relation_to_fallback_route_group" "example_l3_outside" {

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the Relation To Fallback Route Group object.
* `annotation` (annotation) - (string) The annotation of the Relation To Fallback Route Group object.
* `id` - (string) The distinguished name (DN) of the Relation To VRF Fallback Route Group object.
* `annotation` (annotation) - (string) The annotation of the Relation To VRF Fallback Route Group object.

* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ data "aci_tag" "example_application_epg" {
- [aci_endpoint_tag_mac](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_mac) ([fvEpMacTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpMacTag/overview))
- [aci_vrf_fallback_route_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group) ([fvFBRGroup](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRGroup/overview))
- [aci_vrf_fallback_route_group_member](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group_member) ([fvFBRMember](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRMember/overview))
- [aci_vrf_fallback_route](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route) ([fvFBRoute](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRoute/overview))
- [aci_relation_to_consumed_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_consumed_contract) ([fvRsCons](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsCons/overview))
- [aci_relation_to_imported_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_imported_contract) ([fvRsConsIf](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsConsIf/overview))
- [aci_relation_to_intra_epg_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_intra_epg_contract) ([fvRsIntraEpg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsIntraEpg/overview))
Expand All @@ -73,7 +74,6 @@ data "aci_tag" "example_application_epg" {
- [aci_relation_to_vrf](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_vrf) ([fvRsScope](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsScope/overview))
- [aci_relation_to_contract_master](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_contract_master) ([fvRsSecInherited](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsSecInherited/overview))
- [aci_tenant](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tenant) ([fvTenant](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvTenant/overview))
- [aci_l2out_extepg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l2out_extepg) ([l2extInstP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/l2extInstP/overview))
* `key` (key) - (string) The key used to uniquely identify this configuration object.

### Read-Only ###
Expand Down
62 changes: 62 additions & 0 deletions docs/data-sources/vrf_fallback_route.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
# Documentation generated by "gen/generator.go"; DO NOT EDIT.
# In order to regenerate this file execute `go generate` from the repository root.
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
subcategory: "Networking"
layout: "aci"
page_title: "ACI: aci_vrf_fallback_route"
sidebar_current: "docs-aci-data-source-aci_vrf_fallback_route"
description: |-
Data source for VRF Fallback Route
---

# aci_vrf_fallback_route #

Data source for VRF Fallback Route

## API Information ##

* Class: [fvFBRoute](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRoute/overview)

* Supported in ACI versions: 5.2(4d) and later.

* Distinguished Name Format: `uni/tn-{name}/ctx-{name}/fbrg-{name}/pfx-[{fbrPrefix}]`

## GUI Information ##

* Location: `Tenants -> Networking -> VRFs -> Policy -> Fallback Route Group -> Fallback Routes`

## Example Usage ##

```hcl
data "aci_vrf_fallback_route" "example_vrf_fallback_route_group" {
parent_dn = aci_vrf_fallback_route_group.example.id
prefix_address = "2.2.2.3/24"
}
```

## Schema ##

### Required ###

* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
- [aci_vrf_fallback_route_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group) ([fvFBRGroup](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRGroup/overview))
* `prefix_address` (fbrPrefix) - (string) The prefix address of the VRF Fallback Route object.

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the VRF Fallback Route object.
* `annotation` (annotation) - (string) The annotation of the VRF Fallback Route object.
* `description` (descr) - (string) The description of the VRF Fallback Route object.
* `name` (name) - (string) The name of the VRF Fallback Route object.
* `name_alias` (nameAlias) - (string) The name alias of the VRF Fallback Route object.

* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.

* `tags` - (list) A list of Tags (ACI object [tagTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagTag/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.
7 changes: 7 additions & 0 deletions docs/data-sources/vrf_fallback_route_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ data "aci_vrf_fallback_route_group" "example_vrf" {
* `name_alias` (nameAlias) - (string) The name alias of the VRF Fallback Route Group Member object.
* `fallback_member` (rnhAddr) - (string) The address of the VRF Fallback Route Group Member object.

* `vrf_fallback_routes` - (list) A list of VRF Fallback Routes (ACI object [fvFBRoute](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRoute/overview)).
* `annotation` (annotation) - (string) The annotation of the VRF Fallback Route object.
* `description` (descr) - (string) The description of the VRF Fallback Route object.
* `prefix_address` (fbrPrefix) - (string) The prefix address of the VRF Fallback Route object.
* `name` (name) - (string) The name of the VRF Fallback Route object.
* `name_alias` (nameAlias) - (string) The name alias of the VRF Fallback Route object.

* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later.
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ All examples for the Annotation resource can be found in the [examples](https://
- [aci_endpoint_tag_mac](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/endpoint_tag_mac) ([fvEpMacTag](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvEpMacTag/overview))
- [aci_vrf_fallback_route_group](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group) ([fvFBRGroup](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRGroup/overview))
- [aci_vrf_fallback_route_group_member](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route_group_member) ([fvFBRMember](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRMember/overview))
- [aci_vrf_fallback_route](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/vrf_fallback_route) ([fvFBRoute](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvFBRoute/overview))
- [aci_relation_to_consumed_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_consumed_contract) ([fvRsCons](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsCons/overview))
- [aci_relation_to_imported_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_imported_contract) ([fvRsConsIf](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsConsIf/overview))
- [aci_relation_to_intra_epg_contract](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_intra_epg_contract) ([fvRsIntraEpg](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsIntraEpg/overview))
Expand All @@ -82,7 +83,6 @@ All examples for the Annotation resource can be found in the [examples](https://
- [aci_relation_to_vrf](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_vrf) ([fvRsScope](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsScope/overview))
- [aci_relation_to_contract_master](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/relation_to_contract_master) ([fvRsSecInherited](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsSecInherited/overview))
- [aci_tenant](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tenant) ([fvTenant](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvTenant/overview))
- [aci_l2out_extepg](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l2out_extepg) ([l2extInstP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/l2extInstP/overview))
* `key` (key) - (string) The key used to uniquely identify this configuration object.
* `value` (value) - (string) The value of the property.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
# More details can be found in the [README](https://github.com/CiscoDevNet/terraform-provider-aci/blob/master/README.md).
subcategory: "L3Out"
layout: "aci"
page_title: "ACI: aci_relation_to_fallback_route_group"
sidebar_current: "docs-aci-resource-aci_relation_to_fallback_route_group"
page_title: "ACI: aci_relation_to_vrf_fallback_route_group"
sidebar_current: "docs-aci-resource-aci_relation_to_vrf_fallback_route_group"
description: |-
Manages ACI Relation To Fallback Route Group
Manages ACI Relation To VRF Fallback Route Group
---

# aci_relation_to_fallback_route_group #
# aci_relation_to_vrf_fallback_route_group #

Manages ACI Relation To Fallback Route Group
Manages ACI Relation To VRF Fallback Route Group



Expand All @@ -30,23 +30,23 @@ Manages ACI Relation To Fallback Route Group

## Example Usage ##

The configuration snippet below creates a Relation To Fallback Route Group with only required attributes.
The configuration snippet below creates a Relation To VRF Fallback Route Group with only required attributes.

```hcl
resource "aci_relation_to_fallback_route_group" "example_l3_outside" {
resource "aci_relation_to_vrf_fallback_route_group" "example_l3_outside" {
parent_dn = aci_l3_outside.example.id
target_dn = aci_vrf_fallback_route_group.example.id
}
```
The configuration snippet below shows all possible attributes of the Relation To Fallback Route Group.
The configuration snippet below shows all possible attributes of the Relation To VRF Fallback Route Group.

!> This example might not be valid configuration and is only used to show all possible attributes.

```hcl
resource "aci_relation_to_fallback_route_group" "full_example_l3_outside" {
resource "aci_relation_to_vrf_fallback_route_group" "full_example_l3_outside" {
parent_dn = aci_l3_outside.example.id
annotation = "annotation"
target_dn = aci_vrf_fallback_route_group.example.id
Expand All @@ -66,7 +66,7 @@ resource "aci_relation_to_fallback_route_group" "full_example_l3_outside" {
```

All examples for the Relation To Fallback Route Group resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_relation_to_fallback_route_group) folder.
All examples for the Relation To VRF Fallback Route Group resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_relation_to_vrf_fallback_route_group) folder.

## Schema ##

Expand All @@ -78,11 +78,11 @@ All examples for the Relation To Fallback Route Group resource can be found in t

### Read-Only ###

* `id` - (string) The distinguished name (DN) of the Relation To Fallback Route Group object.
* `id` - (string) The distinguished name (DN) of the Relation To VRF Fallback Route Group object.

### Optional ###

* `annotation` (annotation) - (string) The annotation of the Relation To Fallback Route Group object.
* `annotation` (annotation) - (string) The annotation of the Relation To VRF Fallback Route Group object.
- Default: `orchestrator:terraform`

* `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). Annotations can also be configured using a separate [aci_annotation](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/annotation) resource. This attribute is supported in ACI versions: 3.2(1l) and later.
Expand All @@ -101,18 +101,18 @@ All examples for the Relation To Fallback Route Group resource can be found in t

## Importing

An existing Relation To Fallback Route Group can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its distinguished name (DN), via the following command:
An existing Relation To VRF Fallback Route Group can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its distinguished name (DN), via the following command:

```
terraform import aci_relation_to_fallback_route_group.example_l3_outside uni/tn-{name}/out-{name}/rsoutToFBRGroup-[{tDn}]
terraform import aci_relation_to_vrf_fallback_route_group.example_l3_outside uni/tn-{name}/out-{name}/rsoutToFBRGroup-[{tDn}]
```

Starting in Terraform version 1.5, an existing Relation To Fallback Route Group can be imported
Starting in Terraform version 1.5, an existing Relation To VRF Fallback Route Group can be imported
using [import blocks](https://developer.hashicorp.com/terraform/language/import) via the following configuration:

```
import {
id = "uni/tn-{name}/out-{name}/rsoutToFBRGroup-[{tDn}]"
to = aci_relation_to_fallback_route_group.example_l3_outside
to = aci_relation_to_vrf_fallback_route_group.example_l3_outside
}
```
Loading

0 comments on commit 962f137

Please sign in to comment.