summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/ospf.frr.tmpl10
1 files changed, 9 insertions, 1 deletions
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 %}
!