diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-29 17:02:25 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-29 17:02:25 +0100 |
commit | 4250ebbd1215fe6d8a2926c1c77e3e67f47ea2dc (patch) | |
tree | bec99203096b11f74b50cc7a3471da19d60d8c9d /data/templates/frr/ospf.frr.tmpl | |
parent | 2d6cf410aeb1fc6e9e7f7eebdc7e5853ad91961c (diff) | |
download | vyos-1x-4250ebbd1215fe6d8a2926c1c77e3e67f47ea2dc.tar.gz vyos-1x-4250ebbd1215fe6d8a2926c1c77e3e67f47ea2dc.zip |
ospf: T3267: bugfix missing interface parameters cost, priority and bandwidth
Diffstat (limited to 'data/templates/frr/ospf.frr.tmpl')
-rw-r--r-- | data/templates/frr/ospf.frr.tmpl | 10 |
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 %} ! |