From db9f16d1a82e3c386d20891c0ed987eb9eb17513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20Jens=C3=A5s?= Date: Wed, 11 Dec 2024 01:50:18 +0100 Subject: [PATCH] adoption_osp_deploy - os-net-config ironic Set up the ironic network interface on osp controller nodes if the network is defined in the scenario. By default it will map to `nic3`, but it can be overriden in the adoption scenario by setting `os_net_config_ironic_iface` in the scenario defenition. --- .../templates/os_net_config_overcloud.yml.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/roles/adoption_osp_deploy/templates/os_net_config_overcloud.yml.j2 b/roles/adoption_osp_deploy/templates/os_net_config_overcloud.yml.j2 index 3a87dc7650..95ead0ddec 100644 --- a/roles/adoption_osp_deploy/templates/os_net_config_overcloud.yml.j2 +++ b/roles/adoption_osp_deploy/templates/os_net_config_overcloud.yml.j2 @@ -40,3 +40,19 @@ network_config: routes: [] {% endif %} {% endfor %} +{% if 'ironic' in _node_net.networks.keys () %} +{% set net = _node_net.networks.ironic %} +# ironic +- type: linux_bridge + name: br-baremetal + addresses: + - ip_netmask: {{ net.ip_v4 }}/{{ net.prefix_length_v4 }} + use_dhcp: false + routes: [] + members: + - type: interface + name: {{ _stack.os_net_config_ironic_iface | + default('nic3') }} + mtu: {{ net.mtu }} + primary: true +{% endif %}