Skip to main content

BGP

Diagram

Classes

routing (nxos.devices.configuration)

NameTypeConstraintMandatoryDefault Value
bgpClass[bgp]No

bgp (nxos.devices.configuration.routing)

NameTypeConstraintMandatoryDefault Value
asnStringNo
enhanced_error_handlingBooleantrue, falseNo
peer_templatesList[peer_templates]No
vrfsList[vrfs]No

peer_templates (nxos.devices.configuration.routing.bgp)

NameTypeConstraintMandatoryDefault Value
nameStringYes
asnStringNo
descriptionStringNo
peer_typeChoicefabric-internal, fabric-external, fabric-border-leafNo
source_interfaceStringNo
address_familiesList[address_families]No

vrfs (nxos.devices.configuration.routing.bgp)

NameTypeConstraintMandatoryDefault Value
vrfStringYes
router_idStringNo
log_neighbor_changesBooleantrue, falseNo
graceful_restart_stalepath_timeIntegermin: 1, max: 3600No
graceful_restart_restart_timeIntegermin: 1, max: 3600No
neighborsList[neighbors]No
address_familiesList[address_families]No

address_families (nxos.devices.configuration.routing.bgp.peer_templates)

NameTypeConstraintMandatoryDefault Value
address_familyChoiceipv4_unicast, ipv6_unicast, l2vpn_evpnYes
send_community_standardBooleantrue, falseNo
send_community_extendedBooleantrue, falseNo
route_reflector_clientBooleantrue, falseNo

neighbors (nxos.devices.configuration.routing.bgp.vrfs)

NameTypeConstraintMandatoryDefault Value
ipIPYes
asnStringNo
peer_templateStringNo
descriptionStringNo
peer_typeChoicefabric-internal, fabric-external, fabric-border-leafNo
source_interfaceStringNo
address_familiesList[address_families]No

address_families (nxos.devices.configuration.routing.bgp.vrfs)

NameTypeConstraintMandatoryDefault Value
address_familyChoiceipv4_unicast, ipv6_unicastYes
advertise_l2vpn_evpnBooleantrue, falseNo
advertise_only_active_routesBooleantrue, falseNo
advertise_physical_ip_for_type5_routesBooleantrue, falseNo
critical_nexthop_timeoutIntegermin: 1, max: 4294967295No
default_information_originateBooleantrue, falseNo
max_ecmp_pathsIntegermin: 1, max: 128No
max_external_ecmp_pathsIntegermin: 1, max: 128No
max_external_internal_ecmp_pathsIntegermin: 1, max: 128No
max_local_ecmp_pathsIntegermin: 1, max: 128No
max_mixed_ecmp_pathsIntegermin: 1, max: 128No
next_hop_route_map_nameStringNo
non_critical_nexthop_timeoutIntegermin: 1, max: 4294967295No
prefix_priorityChoicenone, highNo
retain_rt_allBooleantrue, falseNo
table_map_route_map_nameStringNo
vni_ethernet_tagBooleantrue, falseNo
wait_igp_convergedBooleantrue, falseNo
networksList[networks]No
redistributionsList[redistributions]No

address_families (nxos.devices.configuration.routing.bgp.vrfs.neighbors)

NameTypeConstraintMandatoryDefault Value
address_familyChoiceipv4_unicast, ipv6_unicast, l2vpn_evpnYes
send_community_standardBooleantrue, falseNo
send_community_extendedBooleantrue, falseNo
route_reflector_clientBooleantrue, falseNo
route_map_inStringNo
route_map_outStringNo

networks (nxos.devices.configuration.routing.bgp.vrfs.address_families)

NameTypeConstraintMandatoryDefault Value
prefixStringYes
evpnBooleantrue, falseNo
route_mapStringNo

redistributions (nxos.devices.configuration.routing.bgp.vrfs.address_families)

NameTypeConstraintMandatoryDefault Value
protocolChoicesrv6, unspecified, static, direct, bgp, isis, ospf, ospfv3, eigrp, host, rip, amt, lisp, hmm, amYes
protocol_instanceStringNo
route_mapStringNo
scopeChoiceintra, inter, defrtNo
srv6_prefix_typeChoiceunspecified, locatorNo

Examples

nxos:
devices:
- name: Device1
configuration:
routing:
bgp:
asn: 65000
peer_templates:
- name: Peers
asn: 65001
address_families:
- address_family: ipv4_unicast
send_community_standard: true
send_community_extended: true
vrfs:
- name: default
neighbors:
- ip: 2.3.4.5
peer_template: Peers