Skip to content
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2fedd40
Initial commit
juarocha Oct 20, 2025
480de53
Fixing PEP 8 violations
juarocha Oct 20, 2025
16f52ca
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Oct 27, 2025
64eb9aa
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Nov 13, 2025
4dbdd12
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Nov 19, 2025
b2dad01
Fixing indentation
juarocha Nov 20, 2025
c7f53a5
Removing extra lines
juarocha Nov 20, 2025
8b1d0bb
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Nov 25, 2025
a6c8d5e
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Jan 5, 2026
eaafc1c
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Jan 19, 2026
df80a01
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Jan 29, 2026
95d9044
Merge branch 'develop' into ospfv3-vrf-lite
juarocha Feb 4, 2026
b9766a0
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Feb 6, 2026
4d05b34
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Mar 11, 2026
b2f218c
Merge remote-tracking branch 'upstream/develop' into ospfv3-vrf-lite
juarocha Mar 17, 2026
76be861
Fixing typo
juarocha Mar 26, 2026
8f849bf
Fixing authentication check on ospfv3
juarocha Mar 26, 2026
3649ab4
Fixing pep8
juarocha Mar 27, 2026
6d864ab
Fixing default path for SPI
juarocha Mar 27, 2026
5ce6567
Fixing typo
juarocha Mar 27, 2026
152f697
removing area default cost (not supported on ospfv3)
juarocha Mar 27, 2026
a1eed7f
Adding validation for authentication
juarocha Mar 27, 2026
7769e6c
Fixing space
juarocha Mar 31, 2026
3dc439b
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha May 4, 2026
df421ae
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha May 6, 2026
8fb2078
Merge branch 'netascode:develop' into ospfv3-vrf-lite
juarocha Jun 1, 2026
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
24 changes: 21 additions & 3 deletions plugins/action/common/prepare_plugins/prep_108_vrf_lites.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,16 @@ def prepare(self):
for vrf_lite in data_model["vxlan"]["overlay_extensions"]["vrf_lites"]:
ospf_enabled = True if vrf_lite.get(
"ospf") is not None else False
default_area = vrf_lite.get("ospf", {}).get(
default_ospf_area = vrf_lite.get("ospf", {}).get(
"default_area",
default_values["vxlan"]["overlay_extensions"]["vrf_lites"]["ospf"]["default_area"]
)
ospfv3_enabled = True if vrf_lite.get(
"ospfv3") is not None else False
default_ospfv3_area = vrf_lite.get("ospfv3", {}).get(
"default_area",
default_values["vxlan"]["overlay_extensions"]["vrf_lites"]["ospfv3"]["default_area"]
)
for switch in vrf_lite["switches"]:
unique_name = f"{vrf_lite['name']}_{switch['name']}"

Expand Down Expand Up @@ -151,10 +157,22 @@ def prepare(self):
continue
if intf.get("ospf") is None:
intf["ospf"] = {
"area": default_area
"area": default_ospf_area
}
else:
intf["ospf"]["area"] = default_ospf_area
switch["interfaces"][intf_index] = intf

for intf_index in range(len(switch.get("interfaces", []))):
intf = switch["interfaces"][intf_index]
if not ospfv3_enabled or (intf.get("ospfv3") is not None and intf["ospfv3"].get("area", -1) != -1):
continue
if intf.get("ospfv3") is None:
intf["ospfv3"] = {
"area": default_ospfv3_area
}
else:
intf["ospf"]["area"] = default_area
intf["ospfv3"]["area"] = default_ospfv3_area
switch["interfaces"][intf_index] = intf

# Adding address_family_ipv4_unicast and address_family_ipv6_unicast and child keys
Expand Down
3 changes: 3 additions & 0 deletions roles/dtc/common/templates/ndfc_vrf_lite.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{% if item.ospf is defined and item.ospf %}
{% include 'ndfc_vrf_lite/ndfc_vrf_lite_ospf.j2' %}
{% endif %}
{% if item.ospfv3 is defined and item.ospfv3 %}
{% include 'ndfc_vrf_lite/ndfc_vrf_lite_ospfv3.j2' %}
{% endif %}
{% if (item.bgp is defined and item.bgp) or switch_item.bgp_peers or switch_item.bgp %}
{% include 'ndfc_vrf_lite/ndfc_vrf_lite_ebgp.j2' %}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
{% if switch_redist.source == 'static' and switch_redist.route_map_ipv6 %}
redistribute static route-map {{ switch_redist.route_map_ipv6 }}
{% endif %}
{% if switch_redist.source == 'ospf' and switch_redist.route_map_ipv6 %}
redistribute ospf {{ switch_redist.protocol_tag }} route-map {{ switch_redist.route_map_ipv6 }}
{% if switch_redist.source == 'ospfv3' and switch_redist.route_map_ipv6 and switch_redist.protocol_tag %}
redistribute ospfv3 {{ switch_redist.protocol_tag }} route-map {{ switch_redist.route_map_ipv6 }}
{% endif %}
{% endfor %}
{% endif %}
Expand Down
Loading
Loading