Skip to content

Commit db9f16d

Browse files
hjensasopenshift-merge-bot[bot]
authored andcommitted
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.
1 parent 2d92ec8 commit db9f16d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

roles/adoption_osp_deploy/templates/os_net_config_overcloud.yml.j2

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,19 @@ network_config:
4040
routes: []
4141
{% endif %}
4242
{% endfor %}
43+
{% if 'ironic' in _node_net.networks.keys () %}
44+
{% set net = _node_net.networks.ironic %}
45+
# ironic
46+
- type: linux_bridge
47+
name: br-baremetal
48+
addresses:
49+
- ip_netmask: {{ net.ip_v4 }}/{{ net.prefix_length_v4 }}
50+
use_dhcp: false
51+
routes: []
52+
members:
53+
- type: interface
54+
name: {{ _stack.os_net_config_ironic_iface |
55+
default('nic3') }}
56+
mtu: {{ net.mtu }}
57+
primary: true
58+
{% endif %}

0 commit comments

Comments
 (0)