From 4250ebbd1215fe6d8a2926c1c77e3e67f47ea2dc Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 Jan 2021 17:02:25 +0100 Subject: ospf: T3267: bugfix missing interface parameters cost, priority and bandwidth --- data/templates/frr/ospf.frr.tmpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'data/templates/frr') diff --git a/data/templates/frr/ospf.frr.tmpl b/data/templates/frr/ospf.frr.tmpl index 01a711259..37c21e146 100644 --- a/data/templates/frr/ospf.frr.tmpl +++ b/data/templates/frr/ospf.frr.tmpl @@ -14,7 +14,12 @@ interface {{ iface }} {% endif %} {% endif %} {% endif %} -{# interval configurations all have default values #} +{% if iface_config.cost is defined and iface_config.cost is not none %} + ip ospf cost {{ iface_config.cost }} +{% endif %} +{% if iface_config.priority is defined and iface_config.priority is not none %} + ip ospf priority {{ iface_config.priority }} +{% endif %} {% if iface_config.hello_interval is defined and iface_config.hello_interval is not none %} ip ospf hello-interval {{ iface_config.hello_interval }} {% endif %} @@ -36,6 +41,9 @@ interface {{ iface }} {% if iface_config.network is defined and iface_config.network is not none %} ip ospf network {{ iface_config.network }} {% endif %} +{% if iface_config.bandwidth is defined and iface_config.bandwidth is not none %} + bandwidth {{ iface_config.bandwidth }} +{% endif %} {% endfor %} {% endif %} ! -- cgit v1.2.3