Skip to content

Commit

Permalink
Dell OS10: Fix test cases 33-vrf-common-ospf and 34- by redistributin…
Browse files Browse the repository at this point in the history
…g imported OSPF routes too (#1571)

* Fixes test case 33-vrf-common-ospf

* * Consistent indent
* Fix reference_bandwidth to be taken from the vdata, not global ospf
  • Loading branch information
jbemmel authored Dec 27, 2024
1 parent 82df118 commit 8ccd6a1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions netsim/ansible/templates/vrf/dellos10.ospfv2-vrf.j2
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{% from "templates/ospf/dellos10.macro.j2" import configure_ospf_interface %}

router ospf {{ vdata.vrfidx }} vrf {{ vname }}
router-id {{ vdata.ospf.router_id|default(ospf.router_id) }}
redistribute connected
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 %}
Expand Down

0 comments on commit 8ccd6a1

Please sign in to comment.