Skip to content

Commit 94c3278

Browse files
authored
Rename IPA kernel params to osism-ipa-* scheme and add IPv6 support (#2081)
Rename osism_as to osism-ipa-as, osism_ipv4 to osism-ipa-ipv4, and add osism-ipa-ipv6 (from frr_loopback_v6) for yrzn001 IPA type. IPv6 is only included when frr_loopback_v6 is present. AI-assisted: Claude Code Signed-off-by: Christian Berendt <berendt@osism.tech>
1 parent 0194919 commit 94c3278

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

osism/tasks/conductor/ironic.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424

2525
SUPPORTED_IPA_TYPES = {
2626
"yrzn001": {
27-
"osism_as": "frr_local_as",
28-
"osism_ipv4": "frr_loopback_v4",
27+
"osism-ipa-as": "frr_local_as",
28+
"osism-ipa-ipv4": "frr_loopback_v4",
29+
"osism-ipa-ipv6": "frr_loopback_v6",
2930
},
3031
}
3132

@@ -181,7 +182,7 @@ def _prepare_node_attributes(device, get_ironic_parameters):
181182
else None
182183
)
183184
for kap_name, frr_key in SUPPORTED_IPA_TYPES[ipa_type].items():
184-
if kap_name == "osism_as" and derived_as:
185+
if kap_name == "osism-ipa-as" and derived_as:
185186
kap += f" {kap_name}={derived_as}"
186187
elif frr_key in frr:
187188
kap += f" {kap_name}={frr[frr_key]}"

0 commit comments

Comments
 (0)