Manages NX-OS BGP
Model Documentation: Link
module "nxos_bgp" {
source = "netascode/bgp/nxos"
version = ">= 0.2.0"
asn = "65001"
enhanced_error_handling = false
template_peers = [
{
name = "SPINE-PEERS"
asn = "65001"
description = "Spine Peers template"
peer_type = "fabric-external"
source_interface = "lo0"
address_families = [
{
address_family = "ipv4_unicast"
send_community_standard = true
route_reflector_client = true
},
{
address_family = "l2vpn_evpn"
send_community_standard = true
send_community_extended = true
route_reflector_client = true
}
]
}
]
vrfs = [
{
vrf = "default"
router_id = "1.2.3.4"
log_neighbor_changes = true
graceful_restart_stalepath_time = 123
graceful_restart_restart_time = 123
neighbors = [
{
ip = "5.6.7.8"
description = "My description"
peer_type = "fabric-external"
asn = "65002"
source_interface = "lo2"
address_families = [
{
address_family = "ipv4_unicast"
send_community_standard = true
send_community_extended = true
route_reflector_client = false
},
{
address_family = "l2vpn_evpn"
send_community_standard = true
route_reflector_client = false
}
]
},
{
ip = "9.10.11.12"
description = "My description 2"
inherit_peer = "SPINE-PEERS"
}
]
},
{
vrf = "VRF1"
router_id = "10.20.30.40"
log_neighbor_changes = true
graceful_restart_stalepath_time = 1230
graceful_restart_restart_time = 1230
neighbors = [
{
ip = "50.60.70.80"
description = "My description"
},
{
ip = "90.100.110.120"
description = "My description 2"
}
]
}
]
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
nxos | >= 0.5.0 |
Name | Version |
---|---|
nxos | >= 0.5.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
device | A device name from the provider configuration. | string |
null |
no |
asn | BGP Autonomous system number. | string |
n/a | yes |
enhanced_error_handling | BGP Enhanced error handling. | bool |
true |
no |
template_peers | BGP Template Peers list. Choices peer_type : fabric-internal , fabric-external , fabric-border-leaf . Default value peer_type : fabric-internal .List address_families :Choices address_family : ipv4_unicast , ipv6_unicast . |
list(object({ |
[] |
no |
vrfs | BGP VRF list. List neighbors :Allowed formats ip : 192.168.1.1 or 192.168.1.0/24 .Choices peer_type : fabric-internal , fabric-external , fabric-border-leaf . Default value peer_type : fabric-internal .List address_families :Choices address_family : ipv4_unicast , ipv6_unicast , l2vpn_evpn . |
list(object({ |
[] |
no |
Name | Description |
---|---|
dn | Distinguished name of the object. |
Name | Type |
---|---|
nxos_bgp.bgpEntity | resource |
nxos_bgp_graceful_restart.bgpGr | resource |
nxos_bgp_instance.bgpInst | resource |
nxos_bgp_peer.bgpPeer | resource |
nxos_bgp_peer_address_family.bgpPeerAf | resource |
nxos_bgp_peer_template.bgpPeerCont | resource |
nxos_bgp_peer_template_address_family.bgpPeerAf | resource |
nxos_bgp_route_control.bgpRtCtrl | resource |
nxos_bgp_vrf.bgpDom | resource |