# equinix\_fabric\_routing\_protocol (Resource)
Fabric V4 API compatible resource allows creation and management of Equinix Fabric connection
Additional documentation:
* Getting Started:
* API:
## Example Usage[](#example-usage "Direct link to Example Usage")
Direct Routing Protocol
```
resource "equinix_fabric_routing_protocol" "direct"{
connection_uuid =
type = "DIRECT"
name = "direct_rp"
direct_ipv4 {
equinix_iface_ip = "190.1.1.1/30"
}
direct_ipv6{
equinix_iface_ip = "190::1:1/126"
}
}
```
BGP Routing Protocol (Requires Direct Routing Protocol Created First):
```
resource "equinix_fabric_routing_protocol" "bgp" {
connection_uuid =
type = "BGP"
name = "bgp_rp"
bgp_ipv4 {
customer_peer_ip = "190.1.1.2"
enabled = true
}
bgp_ipv6 {
customer_peer_ip = "190::1:2"
enabled = true
}
customer_asn = 4532
}
```
Direct and BGP Routing Protocol (Requires Depends On to Handle Synchronization):
```
resource "equinix_fabric_routing_protocol" "direct"{
connection_uuid =
type = "DIRECT"
name = "direct_rp"
direct_ipv4 {
equinix_iface_ip = "190.1.1.1/30"
}
direct_ipv6{
equinix_iface_ip = "190::1:1/126"
}
}
resource "equinix_fabric_routing_protocol" "bgp" {
depends_on = [
equinix_fabric_routing_protocol.direct
]
connection_uuid =
type = "BGP"
name = "bgp_rp"
bgp_ipv4 {
customer_peer_ip = "190.1.1.2"
enabled = true
}
bgp_ipv6 {
customer_peer_ip = "190::1:2"
enabled = true
}
customer_asn = 4532
}
```
## Schema[](#schema "Direct link to Schema")
### Required[](#required "Direct link to Required")
* `connection_uuid` (String) Connection URI associated with Routing Protocol
### Optional[](#optional "Direct link to 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, Sensitive) BGP authorization key
* `bgp_ipv4` (Block Set) Routing Protocol BGP IPv4 (see [below for nested schema](#nestedblock--bgp_ipv4))
* `bgp_ipv6` (Block Set) Routing Protocol BGP IPv6 (see [below for nested schema](#nestedblock--bgp_ipv6))
* `customer_asn` (Number) Customer-provided ASN
* `description` (String) Customer-provided Fabric Routing Protocol description
* `direct_ipv4` (Block Set) Routing Protocol Direct IPv4 (see [below for nested schema](#nestedblock--direct_ipv4))
* `direct_ipv6` (Block Set) Routing Protocol Direct IPv6 (see [below for nested schema](#nestedblock--direct_ipv6))
* `name` (String) Routing Protocol name. An alpha-numeric 24 characters string which can include only hyphens and underscores
* `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
* `type` (String) Defines the routing protocol type like BGP or DIRECT
* `uuid` (String) Equinix-assigned routing protocol identifier
### Read-Only[](#read-only "Direct link to Read-Only")
* `change` (Set of Object) Routing Protocol configuration Changes (see [below for nested schema](#nestedatt--change))
* `change_log` (Set of Object) Captures Routing Protocol lifecycle change information (see [below for nested schema](#nestedatt--change_log))
* `equinix_asn` (Number) Equinix ASN
* `href` (String) Routing Protocol URI information
* `id` (String) The ID of this resource.
* `operation` (Set of Object) Routing Protocol type-specific operational data (see [below for nested schema](#nestedatt--operation))
* `state` (String) Routing Protocol overall state
[]()
### Nested Schema for `bfd`[](#nested-schema-for-bfd "Direct link to nested-schema-for-bfd")
Required:
* `enabled` (Boolean) Bidirectional Forwarding Detection enablement
Optional:
* `interval` (String) Interval range between the received BFD control packets
[]()
### Nested Schema for `bgp_ipv4`[](#nested-schema-for-bgp_ipv4 "Direct link to nested-schema-for-bgp_ipv4")
Required:
* `customer_peer_ip` (String) Customer side peering ip
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
[]()
### Nested Schema for `bgp_ipv6`[](#nested-schema-for-bgp_ipv6 "Direct link to nested-schema-for-bgp_ipv6")
Required:
* `customer_peer_ip` (String) Customer side peering ip
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
[]()
### Nested Schema for `direct_ipv4`[](#nested-schema-for-direct_ipv4 "Direct link to nested-schema-for-direct_ipv4")
Required:
* `equinix_iface_ip` (String) Equinix side Interface IP address
[]()
### Nested Schema for `direct_ipv6`[](#nested-schema-for-direct_ipv6 "Direct link to nested-schema-for-direct_ipv6")
Optional:
* `equinix_iface_ip` (String) Equinix side Interface IP address
[]()
### Nested Schema for `timeouts`[](#nested-schema-for-timeouts "Direct link to nested-schema-for-timeouts")
Optional:
* `create` (String)
* `delete` (String)
* `read` (String)
* `update` (String)
[]()
### Nested Schema for `change`[](#nested-schema-for-change "Direct link to nested-schema-for-change")
Read-Only:
* `href` (String)
* `type` (String)
* `uuid` (String)
[]()
### Nested Schema for `change_log`[](#nested-schema-for-change_log "Direct link to nested-schema-for-change_log")
Read-Only:
* `created_by` (String)
* `created_by_email` (String)
* `created_by_full_name` (String)
* `created_date_time` (String)
* `deleted_by` (String)
* `deleted_by_email` (String)
* `deleted_by_full_name` (String)
* `deleted_date_time` (String)
* `updated_by` (String)
* `updated_by_email` (String)
* `updated_by_full_name` (String)
* `updated_date_time` (String)
[]()
### Nested Schema for `operation`[](#nested-schema-for-operation "Direct link to nested-schema-for-operation")
Read-Only:
* `errors` (List of Object) (see [below for nested schema](#nestedobjatt--operation--errors))
[]()
### Nested Schema for `operation.errors`[](#nested-schema-for-operationerrors "Direct link to nested-schema-for-operationerrors")
Read-Only:
* `additional_info` (List of Object) (see [below for nested schema](#nestedobjatt--operation--errors--additional_info))
* `correlation_id` (String)
* `details` (String)
* `error_code` (String)
* `error_message` (String)
* `help` (String)
[]()
### Nested Schema for `operation.errors.additional_info`[](#nested-schema-for-operationerrorsadditional_info "Direct link to nested-schema-for-operationerrorsadditional_info")
Read-Only:
* `property` (String)
* `reason` (String)