commit 9a88ac5e29847e0f38e1ed26789b31eb0c0b0f0a
Author: Bob Fournier <email address hidden>
Date: Thu Feb 8 09:13:21 2018 -0500
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
(cherry picked from commit 97282c64e97485fb40d7c64413745c74e6ead942)
Reviewed: https:/ /review. openstack. org/543961 /git.openstack. org/cgit/ openstack/ ironic- inspector/ commit/ ?id=9a88ac5e298 47e0f38e1ed2678 9b31eb0c0b0f0a
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 9a88ac5e29847e0 f38e1ed26789b31 eb0c0b0f0a
Author: Bob Fournier <email address hidden>
Date: Thu Feb 8 09:13:21 2018 -0500
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: I566acb5b19852b 541df7554870ab2 666f7df9614 b40d7c64413745c 74e6ead942)
Closes-Bug: 1748022
(cherry picked from commit 97282c64e97485f