diff --git a/netsim/ansible/templates/vrf/dellos10.ospfv2-vrf.j2 b/netsim/ansible/templates/vrf/dellos10.ospfv2-vrf.j2 index 74406a56d..b0b225720 100644 --- a/netsim/ansible/templates/vrf/dellos10.ospfv2-vrf.j2 +++ b/netsim/ansible/templates/vrf/dellos10.ospfv2-vrf.j2 @@ -1,12 +1,12 @@ router ospf {{ vdata.vrfidx }} vrf {{ vname }} - router-id {{ vdata.ospf.router_id|default(ospf.router_id) }} - redistribute connected - redistribute imported-ospf-routes + router-id {{ vdata.ospf.router_id|default(ospf.router_id) }} + redistribute connected + redistribute imported-ospf-routes {% if bgp.as is defined %} - redistribute bgp {{ bgp.as }} + redistribute bgp {{ bgp.as }} {% endif %} -{% if ospf.reference_bandwidth is defined %} - auto-cost reference-bandwidth {{ ospf.reference_bandwidth }} +{% if vdata.ospf.reference_bandwidth is defined %} + auto-cost reference-bandwidth {{ vdata.ospf.reference_bandwidth }} {% endif %} ! {% for l in vdata.ospf.interfaces|default([]) if 'ospf' in l and 'ipv4' in l %}