diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2016-06-29 21:44:30 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-08 18:35:29 +0000 |
commit | fb4d22587fdc46d64c253a1ab1b40b228a8c0887 (patch) | |
tree | fa943dbdffc677c92a9573b1dba4d33cceb2359f /configs/Barreleye.py | |
parent | 9baab4eb2d575618b6efc23f015140ea9ac85983 (diff) | |
download | blackbird-skeleton-fb4d22587fdc46d64c253a1ab1b40b228a8c0887.tar.gz blackbird-skeleton-fb4d22587fdc46d64c253a1ab1b40b228a8c0887.zip |
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>
Diffstat (limited to 'configs/Barreleye.py')
-rw-r--r-- | configs/Barreleye.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configs/Barreleye.py b/configs/Barreleye.py index 2b6a5aa..82bc66e 100644 --- a/configs/Barreleye.py +++ b/configs/Barreleye.py @@ -223,6 +223,20 @@ APPS = { 'process_name' : 'phosphor-read-eeprom', 'args' : ['--eeprom','/sys/bus/i2c/devices/6-0055/eeprom','--fruid','66'], }, + 'sync_mac' : { + 'system_state' : 'BMC_READY', + 'start_process' : True, + 'monitor_process' : False, + 'process_name' : 'sync_inventory_items.py', + 'args' : ['-t','DAUGHTER_CARD','-n','io_board','-p','"Custom Field 2"','-s','mac'], + }, + 'sync_uuid' : { + 'system_state' : 'BMC_READY', + 'start_process' : True, + 'monitor_process' : False, + 'process_name' : 'sync_inventory_items.py', + 'args' : ['-t','MAIN_PLANAR','-n','motherboard','-p','"Custom Field 1"','-s','uuid'], + }, 'restore' : { 'system_state' : 'BMC_READY', 'start_process' : True, |