ibgp.conf 577 B

123456789101112131415161718192021222324252627
  1. #
  2. # FFHO iBGP configuration (Salt managed)
  3. #
  4. template bgp ibgp {
  5. import filter ibgp_in;
  6. export filter ibgp_out;
  7. local as AS_OWN;
  8. source address LO_IP;
  9. enable route refresh yes;
  10. graceful restart yes;
  11. }
  12. {%- set peers = salt['pillar.get']("nodes:" ~ grains.id ~ ":routing:bgp:internal:peers:" ~ family, []) %}
  13. {% for peer_config in peers %}
  14. protocol bgp {{ peer_config.get ('node')|replace(".", "_")|replace("-", "_") }} from ibgp {
  15. neighbor {{ peer_config.get ('ip') }} as AS_OWN;
  16. {%- if peer_config.get ('rr_client') %}
  17. rr client;
  18. {%- endif %}
  19. }
  20. {% endfor %}