summaryrefslogtreecommitdiff
path: root/data/templates/frr/bfdd.frr.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-27 20:43:02 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-27 20:43:20 +0200
commitf4732f348ff4b0a9d82ec698f4a8b3c6107f9101 (patch)
tree2b23bfef00b4bf1d6f1490538ea12158d43e21b0 /data/templates/frr/bfdd.frr.tmpl
parent0f25b50ea8c0bf4b92a93db9392066d99d354449 (diff)
downloadvyos-1x-f4732f348ff4b0a9d82ec698f4a8b3c6107f9101.tar.gz
vyos-1x-f4732f348ff4b0a9d82ec698f4a8b3c6107f9101.zip
frr: T2175: rename daemon Jinja2 templates to match (d)aemon suffix
Diffstat (limited to 'data/templates/frr/bfdd.frr.tmpl')
-rw-r--r--data/templates/frr/bfdd.frr.tmpl44
1 files changed, 44 insertions, 0 deletions
diff --git a/data/templates/frr/bfdd.frr.tmpl b/data/templates/frr/bfdd.frr.tmpl
new file mode 100644
index 000000000..16f8be92c
--- /dev/null
+++ b/data/templates/frr/bfdd.frr.tmpl
@@ -0,0 +1,44 @@
+!
+bfd
+{% if profile is defined and profile is not none %}
+{% for profile_name, profile_config in profile.items() %}
+ profile {{ profile_name }}
+ detect-multiplier {{ profile_config.interval.multiplier }}
+ receive-interval {{ profile_config.interval.receive }}
+ transmit-interval {{ profile_config.interval.transmit }}
+{% if profile_config.interval['echo-interval'] is defined and profile_config.interval['echo-interval'] is not none %}
+ echo-interval {{ profile_config.interval['echo-interval'] }}
+{% endif %}
+{% if profile_config['echo-mode'] is defined %}
+ echo-mode
+{% endif %}
+{% if profile_config.shutdown is defined %}
+ shutdown
+{% else %}
+ no shutdown
+{% endif %}
+ exit
+{% endfor %}
+{% endif %}
+{% if peer is defined and peer is not none %}
+{% for peer_name, peer_config in peer.items() %}
+ peer {{ peer_name }}{{ ' multihop' if peer_config.multihop is defined }}{{ ' local-address ' + peer_config.source.address if peer_config.source is defined and peer_config.source.address is defined }}{{ ' interface ' + peer_config.source.interface if peer_config.source is defined and peer_config.source.interface is defined }}
+ detect-multiplier {{ peer_config.interval.multiplier }}
+ receive-interval {{ peer_config.interval.receive }}
+ transmit-interval {{ peer_config.interval.transmit }}
+{% if peer_config.interval['echo-interval'] is defined and peer_config.interval['echo-interval'] is not none %}
+ echo-interval {{ peer_config.interval['echo-interval'] }}
+{% endif %}
+{% if peer_config['echo-mode'] is defined %}
+ echo-mode
+{% endif %}
+{% if peer_config.shutdown is defined %}
+ shutdown
+{% else %}
+ no shutdown
+{% endif %}
+ exit
+{% endfor %}
+{% endif %}
+ end
+!