Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{% if switch_redist.source == 'static' and switch_redist.route_map_ipv4 %}
redistribute static route-map {{ switch_redist.route_map_ipv4 }}
{% endif %}
{% if switch_redist.source == 'ospf' and switch_redist.route_map_ipv4 %}
{% if switch_redist.source == 'ospf' and switch_redist.route_map_ipv4 and switch_redist.protocol_tag %}
redistribute ospf {{ switch_redist.protocol_tag }} route-map {{ switch_redist.route_map_ipv4 }}
{% endif %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ router ospf {{ item.ospf['process'] }}
{% endif %}
{% if item.ospf.areas %}
{% for area in item.ospf.areas %}
{{- render_ospf_area(area, defaults) -}}
{{- render_ospf_area(area, defaults) | indent(2) -}}
{% endfor %}
{% endif %}
{% if (item.ospf.distance and item.ospf.distance != 110) or (item.ospf.distance is not defined and defaults.vxlan.overlay_extensions.vrf_lites.ospf.distance != 110) %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def check_global_ospf_area(cls, policy):
"""
Check OSPF if backbone area is standard
"""
if policy.get("ospf") and not policy["ospf"].get("areas"):
if policy.get("ospf") and policy["ospf"].get("areas"):
for area in policy["ospf"]["areas"]:
if "id" in area and area.get("area_type"):
# Check if AREA 0 is not standard
Expand Down