Add logic to sync/preserve MAC and UUID
The MAC and UUID values are written in the VPD eeprom by the manufacturer.
These values are mirrored to u-boot. During BMC boot, check that the
values in the VPD eeprom and u-boot are the same. If they are different,
use the VPD eeprom value to update u-boot.
Exception is the MAC when it's been set by the admin to have a locally
administered address. In this case the MAC is not updated.
Updating the MAC takes effect immediately, updating the UUID requires a
BMC reboot.
Change-Id: Ied0f308ed06cd6a45bd618bbb307b2483c6b5b61
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/pyinventorymgr/setup.py b/pyinventorymgr/setup.py
index 851d961..07e48b4 100644
--- a/pyinventorymgr/setup.py
+++ b/pyinventorymgr/setup.py
@@ -2,5 +2,5 @@
setup(name='pyinventorymgr',
version='1.0',
- scripts=['inventory_items.py'],
+ scripts=['inventory_items.py', 'sync_inventory_items.py'],
)