Skip to content

Commit

Permalink
adoption_osp_deploy - os-net-config ironic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hjensas authored and openshift-merge-bot[bot] committed Dec 16, 2024
1 parent 2d92ec8 commit db9f16d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions roles/adoption_osp_deploy/templates/os_net_config_overcloud.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit db9f16d

Please sign in to comment.