summaryrefslogtreecommitdiff
path: root/data/templates/frr/eigrpd.frr.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-14 20:29:05 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-14 20:29:11 +0100
commit0eb4168aaec0ab3416d8b02eaa1be721b96ee7a8 (patch)
treea17ad90477eac402118236ad124a9d421f2a649f /data/templates/frr/eigrpd.frr.j2
parent6f490b48e7f9cd8d4da8207f70c1cf0f2a145f40 (diff)
downloadvyos-1x-0eb4168aaec0ab3416d8b02eaa1be721b96ee7a8.tar.gz
vyos-1x-0eb4168aaec0ab3416d8b02eaa1be721b96ee7a8.zip
eigrp: T2472: improve code for later tests
Diffstat (limited to 'data/templates/frr/eigrpd.frr.j2')
-rw-r--r--data/templates/frr/eigrpd.frr.j224
1 files changed, 17 insertions, 7 deletions
diff --git a/data/templates/frr/eigrpd.frr.j2 b/data/templates/frr/eigrpd.frr.j2
index 3038a0b1d..d16963a51 100644
--- a/data/templates/frr/eigrpd.frr.j2
+++ b/data/templates/frr/eigrpd.frr.j2
@@ -1,21 +1,31 @@
!
-router eigrp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
+router eigrp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }}
{% if maximum_paths is vyos_defined %}
-maximum-paths {{ maximum_paths }}
+ maximum-paths {{ maximum_paths }}
{% endif %}
{% if metric.weights is vyos_defined %}
-metric weights {{ metric.weights }}
+ metric weights {{ metric.weights }}
{% endif %}
{% if network is vyos_defined %}
{% for net in network %}
-network {{ net }}
+ network {{ net }}
+{% endfor %}
+{% endif %}
+{% if passive_interface is vyos_defined %}
+{% for interface in passive_interface %}
+ passive-interface {{ interface }}
{% endfor %}
{% endif %}
{% if redistribute is vyos_defined %}
{% for protocol in redistribute %}
-redistribute {{ protocol }}
+ redistribute {{ protocol }}
{% endfor %}
{% endif %}
+{% if router_id is vyos_defined %}
+ eigrp router-id {{ router_id }}
+{% endif %}
{% if variance is vyos_defined %}
-variance {{ variance }}
-{% endif %} \ No newline at end of file
+ variance {{ variance }}
+{% endif %}
+exit
+!