crxn_peers.conf.j2 840 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. protocol babel crxn {
  2. randomize router id on;
  3. {% if crxnpeers is defined %}{% for peer in crxnpeers %}
  4. interface "{{ peer.interface }}" {
  5. type wired;
  6. {% if peer.rxcost == "rtt" %}
  7. rxcost 96;
  8. rtt cost 192;
  9. rtt min 10 ms;
  10. rtt max 1000 ms;
  11. {% else %}
  12. rxcost {{ peer.rxcost }};
  13. {% endif %}
  14. send timestamps yes;
  15. };
  16. {% endfor %}{% endif %}
  17. {% for igp_peer in dnet.igp if igp_peer.interface is defined %}
  18. # IGP peer {{ igp_peer.name }}
  19. interface "{{ igp_peer.interface }}" {
  20. type wired;
  21. rxcost 96;
  22. rtt cost 192;
  23. rtt min 10 ms;
  24. rtt max 1000 ms;
  25. port 6697;
  26. };
  27. {% endfor %}
  28. ipv6 {
  29. import where crxn_import_filter();
  30. import limit 2000 action block;
  31. export where crxn_export_filter();
  32. };
  33. }