[PATCH skeleton] Add logic to sync/preserve MAC and UUID

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Jun 30 13:00:59 AEST 2016


Add logic to sync/preserve the MAC and UUID in case of HW replacement.
The MAC and UUID values are set in VPD by the manufacturer. These
values are mirrored to u-boot. During BMC boot, check that VPD and u-boot
are in sync. If they are different, use the vpd value to update u-boot.
Exception is the MAC when it's been set by the admin to have a locally
administered address.
Updating the MAC takes effect immediately, updating the UUID requires a
BMC reboot.

Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/skeleton/121)
<!-- Reviewable:end -->


https://github.com/openbmc/skeleton/pull/121

Adriana Kobylak (1):
  Add logic to sync/preserve MAC and UUID

 configs/Barreleye.py                   |  14 ++++
 pyinventorymgr/setup.py                |   2 +-
 pyinventorymgr/sync_inventory_items.py | 118 +++++++++++++++++++++++++++++++++
 3 files changed, 133 insertions(+), 1 deletion(-)
 create mode 100644 pyinventorymgr/sync_inventory_items.py

-- 
2.9.0




More information about the openbmc mailing list