Skip to content
Snippets Groups Projects
Commit 27a286c9 authored by Mark Goddard's avatar Mark Goddard
Browse files

Add an inspector rule to store the PXE interface MAC address

This is useful for configuring the IP address on the correct interface
when the node first boots.
parent bd5b65d3
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,7 @@ kolla_bifrost_inspector_rules: ...@@ -72,6 +72,7 @@ kolla_bifrost_inspector_rules:
- "{{ inspector_rule_local_boot }}" - "{{ inspector_rule_local_boot }}"
- "{{ inspector_rule_root_hint_init }}" - "{{ inspector_rule_root_hint_init }}"
- "{{ inspector_rule_root_hint_serial }}" - "{{ inspector_rule_root_hint_serial }}"
- "{{ inspector_rule_set_pxe_interface_mac }}"
- "{{ inspector_rule_eno3_lldp_switch_port_desc_to_name }}" - "{{ inspector_rule_eno3_lldp_switch_port_desc_to_name }}"
# Ironic inspector IPMI username to set. # Ironic inspector IPMI username to set.
......
...@@ -97,6 +97,18 @@ inspector_rule_root_hint_serial: ...@@ -97,6 +97,18 @@ inspector_rule_root_hint_serial:
path: "properties/root_device/serial" path: "properties/root_device/serial"
value: "{data[root_disk][serial]}" value: "{data[root_disk][serial]}"
# Ironic inspector rule to set the interface on which the node PXE booted.
inspector_rule_set_pxe_interface_mac:
description: "Set node PXE interface MAC address"
conditions:
- field: "data://boot_interface"
op: "is-empty"
invert: True
actions:
- action: "set-attribute"
path: "extra/pxe_interface_mac"
value: "{data[boot_interface]}"
# Ironic inspector rule to set the node's name from eno3's LLDP switch port # Ironic inspector rule to set the node's name from eno3's LLDP switch port
# description. # description.
inspector_rule_eno3_lldp_switch_port_desc_to_name: inspector_rule_eno3_lldp_switch_port_desc_to_name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment