diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 21:47:02 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 21:47:02 +0200 |
commit | 166b86163824b1ae43aed78487d5cd2dba1a07d6 (patch) | |
tree | 714be7c51f7c0cffcf3bcc2e16aab8901659d692 /data | |
parent | 481bd0bfa9f3a45f1a8e22f6559aeefbfc7f0809 (diff) | |
download | vyos-1x-166b86163824b1ae43aed78487d5cd2dba1a07d6.tar.gz vyos-1x-166b86163824b1ae43aed78487d5cd2dba1a07d6.zip |
bfd: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr-bfd/bfd.frr.tmpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/templates/frr-bfd/bfd.frr.tmpl b/data/templates/frr-bfd/bfd.frr.tmpl new file mode 100644 index 000000000..7df4bfd01 --- /dev/null +++ b/data/templates/frr-bfd/bfd.frr.tmpl @@ -0,0 +1,16 @@ +! +bfd +{% for peer in old_peers -%} + no peer {{ peer.remote }}{% if peer.multihop %} multihop{% endif %}{% if peer.src_addr %} local-address {{ peer.src_addr }}{% endif %}{% if peer.src_if %} interface {{ peer.src_if }}{% endif %} +{% endfor -%} +! +{% for peer in new_peers -%} + peer {{ peer.remote }}{% if peer.multihop %} multihop{% endif %}{% if peer.src_addr %} local-address {{ peer.src_addr }}{% endif %}{% if peer.src_if %} interface {{ peer.src_if }}{% endif %} + detect-multiplier {{ peer.multiplier }} + receive-interval {{ peer.rx_interval }} + transmit-interval {{ peer.tx_interval }} + {% if peer.echo_mode %}echo-mode{% endif %} + {% if peer.echo_interval != '' %}echo-interval {{ peer.echo_interval }}{% endif %} + {% if not peer.shutdown %}no {% endif %}shutdown +{% endfor -%} +! |