From bd1d54932aca581f66ec7042e2a9abb85e2199c3 Mon Sep 17 00:00:00 2001 From: Freerk-Ole Zakfeld Date: Mon, 18 May 2026 18:36:16 +0200 Subject: [PATCH] Redistribute Static + IPv6 routes Signed-off-by: Freerk-Ole Zakfeld --- osism/tasks/conductor/sonic/config_generator.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/osism/tasks/conductor/sonic/config_generator.py b/osism/tasks/conductor/sonic/config_generator.py index 4da36140..1ac28d95 100644 --- a/osism/tasks/conductor/sonic/config_generator.py +++ b/osism/tasks/conductor/sonic/config_generator.py @@ -1979,9 +1979,15 @@ def _add_vrf_configuration(config, vrf_info, netbox_interfaces): # Add ROUTE_REDISTRIBUTE for VRF if "ROUTE_REDISTRIBUTE" not in config: config["ROUTE_REDISTRIBUTE"] = {} - route_redistribute_key = f"{vrf_name}|connected|bgp|ipv4" - config["ROUTE_REDISTRIBUTE"][route_redistribute_key] = {} - logger.info(f"Added ROUTE_REDISTRIBUTE {route_redistribute_key}") + for proto, af in [ + ("connected", "ipv4"), + ("connected", "ipv6"), + ("static", "ipv4"), + ("static", "ipv6"), + ]: + key = f"{vrf_name}|{proto}|bgp|{af}" + config["ROUTE_REDISTRIBUTE"][key] = {} + logger.info(f"Added ROUTE_REDISTRIBUTE {key}") elif "table_id" in vrf_data: # VRF with table_id (no RD set in NetBox)