Skip to content

Commit

Permalink
feat: Add BGP Metrics fields for fabric cloud router routing protocols (
Browse files Browse the repository at this point in the history
#794)

* Added additional optional fields to routing protocols bgp_ipv4 and
bgp_ipv6 objects
* Included acceptance testing

Acceptance Tests for Fabric will be failing intermittently because in
UAT the Vlan Tags are not being released quickly (or possibly at all).
I've included evidence of local passing tests in a screenshot below:

<img width="1227" alt="image"
src="https://github.com/user-attachments/assets/74c340b8-7957-4dcf-88d2-ba2cdd8147b2">
  • Loading branch information
thogarty authored Oct 8, 2024
1 parent b165549 commit c4df27a
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 197 deletions.
7 changes: 7 additions & 0 deletions docs/data-sources/fabric_routing_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ output "customer_asn" {

### Read-Only

- `as_override_enabled` (Boolean) Enable AS number override
- `bfd` (Set of Object) Bidirectional Forwarding Detection (see [below for nested schema](#nestedatt--bfd))
- `bgp_auth_key` (String) BGP authorization key
- `bgp_ipv4` (Set of Object) Routing Protocol BGP IPv4 (see [below for nested schema](#nestedatt--bgp_ipv4))
Expand Down Expand Up @@ -114,6 +115,9 @@ Read-Only:
- `customer_peer_ip` (String)
- `enabled` (Boolean)
- `equinix_peer_ip` (String)
- `inbound_med` (Number)
- `outbound_as_prepend_count` (String)
- `outbound_med` (Number)


<a id="nestedatt--bgp_ipv6"></a>
Expand All @@ -124,6 +128,9 @@ Read-Only:
- `customer_peer_ip` (String)
- `enabled` (Boolean)
- `equinix_peer_ip` (String)
- `inbound_med` (Number)
- `outbound_as_prepend_count` (String)
- `outbound_med` (Number)


<a id="nestedatt--change"></a>
Expand Down
27 changes: 15 additions & 12 deletions docs/resources/fabric_routing_protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ resource "equinix_fabric_routing_protocol" "bgp" {
```

<!-- schema generated by tfplugindocs -->

## Schema

### Required
Expand All @@ -95,6 +94,7 @@ resource "equinix_fabric_routing_protocol" "bgp" {

### Optional

- `as_override_enabled` (Boolean) Enable AS number override
- `bfd` (Block Set) Bidirectional Forwarding Detection (see [below for nested schema](#nestedblock--bfd))
- `bgp_auth_key` (String) BGP authorization key
- `bgp_ipv4` (Block Set) Routing Protocol BGP IPv4 (see [below for nested schema](#nestedblock--bgp_ipv4))
Expand All @@ -119,7 +119,6 @@ resource "equinix_fabric_routing_protocol" "bgp" {
- `state` (String) Routing Protocol overall state

<a id="nestedblock--bfd"></a>

### Nested Schema for `bfd`

Required:
Expand All @@ -130,8 +129,8 @@ Optional:

- `interval` (String) Interval range between the received BFD control packets

<a id="nestedblock--bgp_ipv4"></a>

<a id="nestedblock--bgp_ipv4"></a>
### Nested Schema for `bgp_ipv4`

Required:
Expand All @@ -141,13 +140,16 @@ Required:
Optional:

- `enabled` (Boolean) Admin status for the BGP session
- `inbound_med` (Number) Inbound Multi Exit Discriminator attribute
- `outbound_as_prepend_count` (String) AS path prepend count. One of: 0, 1, 3, 5
- `outbound_med` (Number) Outbound Multi Exit Discriminator attribute

Read-Only:

- `equinix_peer_ip` (String) Equinix side peering ip

<a id="nestedblock--bgp_ipv6"></a>

<a id="nestedblock--bgp_ipv6"></a>
### Nested Schema for `bgp_ipv6`

Required:
Expand All @@ -157,29 +159,32 @@ Required:
Optional:

- `enabled` (Boolean) Admin status for the BGP session
- `inbound_med` (Number) Inbound Multi Exit Discriminator attribute
- `outbound_as_prepend_count` (String) AS path prepend count. One of: 0, 1, 3, 5
- `outbound_med` (Number) Outbound Multi Exit Discriminator attribute

Read-Only:

- `equinix_peer_ip` (String) Equinix side peering ip

<a id="nestedblock--direct_ipv4"></a>

<a id="nestedblock--direct_ipv4"></a>
### Nested Schema for `direct_ipv4`

Required:

- `equinix_iface_ip` (String) Equinix side Interface IP address

<a id="nestedblock--direct_ipv6"></a>

<a id="nestedblock--direct_ipv6"></a>
### Nested Schema for `direct_ipv6`

Optional:

- `equinix_iface_ip` (String) Equinix side Interface IP address

<a id="nestedblock--timeouts"></a>

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:
Expand All @@ -189,8 +194,8 @@ Optional:
- `read` (String)
- `update` (String)

<a id="nestedatt--change"></a>

<a id="nestedatt--change"></a>
### Nested Schema for `change`

Read-Only:
Expand All @@ -199,8 +204,8 @@ Read-Only:
- `type` (String)
- `uuid` (String)

<a id="nestedatt--change_log"></a>

<a id="nestedatt--change_log"></a>
### Nested Schema for `change_log`

Read-Only:
Expand All @@ -218,16 +223,15 @@ Read-Only:
- `updated_by_full_name` (String)
- `updated_date_time` (String)

<a id="nestedatt--operation"></a>

<a id="nestedatt--operation"></a>
### Nested Schema for `operation`

Read-Only:

- `errors` (List of Object) (see [below for nested schema](#nestedobjatt--operation--errors))

<a id="nestedobjatt--operation--errors"></a>

### Nested Schema for `operation.errors`

Read-Only:
Expand All @@ -240,7 +244,6 @@ Read-Only:
- `help` (String)

<a id="nestedobjatt--operation--errors--additional_info"></a>

### Nested Schema for `operation.errors.additional_info`

Read-Only:
Expand Down
Loading

0 comments on commit c4df27a

Please sign in to comment.