Resource Type: cisco_bgp
- Defined in:
- lib/puppet/type/cisco_bgp.rb
- Providers:
-
cisco
Overview
Manages BGP global and vrf configuration.
~~~puppet cisco_bgp { ‘<bgp-title>’:
..attributes..
} ~~~
‘<bgp-title>` is the title of the bgp resource.
Example: ~~~puppet
cisco_bgp { 'raleigh':
ensure => present,
asn => '39317'
vrf => 'green',
route_distinguisher => 'auto',
router_id => '10.0.0.1',
cluster_id => '55',
confederation_id => '77.6',
confederation_peers => '77.6 88 99.4 200',
disable_policy_batching => true,
disable_policy_batching_ipv4 => 'xx',
disable_policy_batching_ipv6 => 'yy',
enforce_first_as => true,
event_history_cli => 'size_large',
event_history_detail => 'size_large',
event_history_errors => 'size_large',
event_history_events => 'size_large',
event_history_objstore => 'size_medium',
event_history_periodic => '100000',
fast_external_fallover => true,
flush_routes => false,
isolate => false,
maxas_limit => '50',
reconnect_interval => '55',
shutdown => false,
supress_fib_pending => true,
log_neighbor_changes => true,
# Best Path Properties
bestpath_always_compare_med => true,
bestpath_aspath_multipath_relax => false,
bestpath_compare_routerid => true,
bestpath_cost_community_ignore => true,
bestpath_med_confed => false,
bestpath_med_missing_as_worst => true,
bestpath_med_non_deterministic => true,
timer_bestpath_limit => 250,
timer_bestpath_limit_always => false,
# Graceful Restart Properties
graceful_restart => true,
graceful_restart_timers_restart => 130,
graceful_restart_timers_stalepath_time => 310,
graceful_restart_helper => true,
# Nonstop Routing (NSR)
nsr => false,
# Timer Properties
timer_bgp_keepalive => 30,
timer_bgp_holdtime => 90,
}
~~~
Example Title Patterns:
~~~puppet
cisco_bgp { 'new_york':
ensure => present,
asn => '39317',
vrf => 'green',
~~~
~~~puppet
cisco_bgp { '55':
ensure => present,
vrf => 'blue',
~~~
~~~puppet
cisco_bgp { '55 blue':
ensure => present,
~~~