ironic-inspector/releasenotes/notes/fix-llc-switch-id-not-mac-e2de3adc0945ee70.yaml
Bob Fournier 97282c64e9 Only set switch_id in local_link_connection if it is a mac address
When the processed lldp data is used for setting the local_link_connection
switch_id, it will set it even if the Chassis ID is not a mac.  Need to
only set it when the ChassisId is a mac address, as is done when using
non-processed lldp data.  Ironic validates that switch_id is either a
mac address or OpenFlow datapath ID.

This fixes a regresssion introduced in Pike.

Change-Id: I566acb5b19852b541df7554870ab2666f7df9614
Closes-Bug: 1748022
2018-02-13 09:33:58 +00:00

10 lines
432 B
YAML

---
fixes:
- |
Fixes bug in which the ``switch_id`` field in a port's ``local_link_connection`` can be set to
a non-MAC address if the processed LLDP has a value other than a
MAC address for ``ChassisID``. The bare metal API requires the ``switch_id``
field to be a MAC address, and will return an error otherwise.
See `bug 1748022 <https://bugs.launchpad.net/ironic-inspector/+bug/1748022>`_
for details.