diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-11 20:38:48 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-03-14 11:09:56 +0100 |
commit | 8c7f469cc4463fe6b368c6310c4edafa67283571 (patch) | |
tree | 047dabf3326f2b256012a7d69e0c255611f362c9 /data/templates/frr | |
parent | 952c52ef012504f17f09234ab1f7608ceb4002b1 (diff) | |
download | vyos-1x-8c7f469cc4463fe6b368c6310c4edafa67283571.tar.gz vyos-1x-8c7f469cc4463fe6b368c6310c4edafa67283571.zip |
vrf: ospf: T2271: create individual OSPF process for specified VRF name
VyOS CLI config:
vrf red {
ospf {
default-information {
originate {
always
}
}
default-metric 30
passive-interface default
}
}
Will create the FRR configuration snippet:
!
router ospf vrf red
auto-cost reference-bandwidth 100
timers throttle spf 200 1000 10000
passive-interface default
default-metric 30
default-information originate always
!
Diffstat (limited to 'data/templates/frr')
-rw-r--r-- | data/templates/frr/ospf.frr.tmpl | 4 |
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 %} |