summaryrefslogtreecommitdiff
path: root/data/templates/frr/ospf.frr.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-14 14:57:13 +0100
committerGitHub <noreply@github.com>2021-03-14 14:57:13 +0100
commit2785a486f798c5e36d59c58720334f7bdffcbb3e (patch)
tree1510d0c47d32b6fd5153c8d7a1775cf367cb6022 /data/templates/frr/ospf.frr.tmpl
parent0f24c5b25bc277e0604608710cf81225d765b3be (diff)
parent7d67e8609471b6a5c9761a99301f368bd6747e13 (diff)
downloadvyos-1x-2785a486f798c5e36d59c58720334f7bdffcbb3e.tar.gz
vyos-1x-2785a486f798c5e36d59c58720334f7bdffcbb3e.zip
Merge pull request #770 from c-po/vrf-dynamic-routing
VRF: support for dynamic routing protocols OSPF and BGP
Diffstat (limited to 'data/templates/frr/ospf.frr.tmpl')
-rw-r--r--data/templates/frr/ospf.frr.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/frr/ospf.frr.tmpl b/data/templates/frr/ospf.frr.tmpl
index 140b6b406..a47c64c89 100644
--- a/data/templates/frr/ospf.frr.tmpl
+++ b/data/templates/frr/ospf.frr.tmpl
@@ -1,7 +1,7 @@
!
{% if interface is defined and interface is not none %}
{% for iface, iface_config in interface.items() %}
-interface {{ iface }}
+interface {{ iface }} {{ 'vrf ' + vrf if vrf is defined and vrf is not none }}
{% if iface_config.authentication is defined and iface_config.authentication is not none %}
{% if iface_config.authentication.plaintext_password is defined and iface_config.authentication.plaintext_password is not none %}
ip ospf authentication-key {{ iface_config.authentication.plaintext_password }}
@@ -50,7 +50,7 @@ interface {{ iface }}
{% endfor %}
{% endif %}
!
-router ospf
+router ospf {{ 'vrf ' + vrf if vrf is defined and vrf is not none }}
{% if access_list is defined and access_list is not none %}
{% for acl, acl_config in access_list.items() %}
{% for protocol in acl_config.export if acl_config.export is defined %}