summaryrefslogtreecommitdiffstats
path: root/pyinventorymgr
Commit message (Collapse)AuthorAgeFilesLines
* Remove inventory_items.py from installationAndrew Geissler2018-04-021-1/+1
| | | | | | | | | | | The old inventory manager is no longer needed with the final integration of phosphor-inventory-manager complete https://gerrit.openbmc-project.xyz/#/c/8793/ must be merged before this commit. Change-Id: I9ce3616b0e9aa272ea1254073e4c7b28353abf0a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* Port to python 3CamVan Nguyen2018-03-121-4/+8
| | | | | | | | | | Port code to python 3 yet remain backward compatible to python 2. This port is in preparation for yocto 2.4 upgrade. Partially resolves openbmc/openbmc#2920 Change-Id: If174ce9444bde4e21fb086764f4def017e423201 Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
* pep8 fixesAdriana Kobylak2018-02-122-4/+6
| | | | | | | | Also ignore the configs/ directory since it only contains system configuration files named <system>.py. Change-Id: I0416239c4030ce5bc39473e65e560016cd4ffc75 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* SyncInventory: Move to the xyz namespace for property macRatan Gupta2017-08-301-12/+36
| | | | | Change-Id: I1db7b44d8fdff7876af83c8fb24fc77b5c7c61b7 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* U-boot script update with new inventory objectDinesh Chinari2017-08-281-59/+72
| | | | | | | Updated new inventory objects in u-boot fw_env scripts. Change-Id: I9545f29f603e2fc46424d44df45ca82379df5ecb Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
* skeleton: Read mac from u-boot instead of net settingsAdriana Kobylak2016-11-211-5/+12
| | | | | | | | | | | | | The system mac should be read from u-boot, not from the network settings, since the network settings one can be the random mac set by the system, and if the random mac happens to have the locally managed bit turned on, it'll prevent the mac from vpd from being written into the system. Fixes openbmc/openbmc#627 Change-Id: I70ffaeb165881a2b83455f2953a4143cb471d688 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* sync: add missing os module importBrad Bishop2016-10-051-0/+1
| | | | | | | fixes: openbmc/openbmc#641 Change-Id: I88dbcfb6d731bff66d7edf4866b61ede06f4c6f8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: Move INVENTORY_ROOT to inventory moduleBrad Bishop2016-09-234-2/+6
| | | | | Change-Id: Ic68d4a48ff46002858934e0b9c9b1694a2a17a08 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* python: add vim modelinesBrad Bishop2016-09-232-0/+4
| | | | | Change-Id: Ic13d79892e3efe6f7bad357ad747e6fd25299d02 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* palmetto: remove frusBrad Bishop2016-09-232-12/+25
| | | | | | | These are now provided in a json file. Change-Id: Ib0491399df797a728c7a71118f7d54a07eb3a466 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: add missing json importBrad Bishop2016-09-131-0/+1
| | | | | Change-Id: I89215bdaf5aa02d0063b6164454b56a7cc19cb37 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use super to construct dbus.service.ObjectBrad Bishop2016-09-121-5/+6
| | | | | Change-Id: I830decfc523d435c6b9ecdc9ffffec7956c3b85d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: add missing module importsBrad Bishop2016-09-081-0/+2
| | | | | Change-Id: I9df7e3917c3107356b67d2f59301a8bd42f59cc1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add ability to load inventory from file instead of hardcoding.Matt Spinler2016-09-081-0/+11
| | | | | | | | | | | | | | | | | | This commit allows inventory_items.py to load the inventory from /usr/share/inventory/inventory.json instead of using the hardcoded array in <System>.py. A future commit will generate inventory.json from the machine readable workbook XML for at least one system. If the code can't load the json file, it will fall back to the hardcoded array, which at this point we know is always present. Even though pyinventorymgr will probably be rewritten in C++ at some point, this series of commits illustrates how the OpenBMC can utilize a data-driven design, and this component was chosen as it takes a minimal amount of changes. Change-Id: Ie749a068d6f47c5671677b21ff3ef5418739f161 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* inventory: allow missing config fileBrad Bishop2016-09-061-2/+11
| | | | | | | | Allow the inventory manager to start with a missing board config file. Change-Id: Ifd0e2080348de6ed802505a26c85ddebf355d3c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: pep8 fixesBrad Bishop2016-09-061-65/+60
| | | | | Change-Id: Ib27c332db35a9e3d5e0bba9d56d5b48966eef9a6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Cache inventory properties fault and presentAdriana Kobylak2016-08-151-1/+3
| | | | | | | | | | | The inventory properties 'fault' and 'present' were the only inventory propertiess that were not being cached, so during a cache restore, these values would be set to default instead of being restored to their last value. Resolves openbmc/openbmc#487 Change-Id: I0bab765e45193635872d465b89fa2e19f3111fa0 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Removing extra Double quotes while displaying firmware versionRatan Gupta2016-08-101-0/+1
| | | | | | | Fixes openbmc/openbmc#453 Change-Id: Ia57f5628be0e99e41b3088643c75ce6fa790282a Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Add logic to sync/preserve MAC and UUIDAdriana Kobylak2016-08-082-1/+131
| | | | | | | | | | | | | | 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>
* Load inventory from cacheAdriana Kobylak2016-08-081-2/+4
| | | | | | | | | | | | | | The inventory is persisted across BMC reboots, so load this data at BMC startup to not need a system power off/on to load the inventory. Load the cached values after setting the property values to default, so that the cached value (if any) overwrites the default value and the properties return to the same state they were prior to BMC reboot. Fixes openbmc/openbmc#487 Change-Id: I9e40b2af6880dbaa4ccc0f7e93c74ecf63a51d6f Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Remove unnecessary InterfacesAdded signalsBrad Bishop2016-07-101-1/+0
| | | | | | | | | | Remove ObjectManager signals emitted before a bus name is owned. This isn't necessary now that the system_manager can detect objects via NameOwnerChanged. Change-Id: Ia2b626a926392b50d20c26474e6c9a9fdb3ca2f0 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Export objects prior to bus name grabBrad Bishop2016-07-101-0/+1
| | | | | | | | | The default behavior in pyphosphor changed such that ObjectManager and Properties signals are not emitted by default. Enable signals just prior to bus name grab. Change-Id: I27a2de4b60482dd843702396f33c7cdccaf17277 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Install python workbook to well-known locationBrad Bishop2016-06-101-6/+1
| | | | | | | This removes the need to pass the system configuration to all the scripts. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Reorganize directory structureBrad Bishop2016-06-104-0/+106
Moving to directory per-application layout. This facilitates building single applications which is useful in the Yocto build environment since different applications satisfy different OpenBMC build requirements. A number of issues are also addressed: - All applications were pulling in libsystemd and the gdbus libs irrespective of whether or not they were needed. - gpio.o duplicated in every application - moved to libopenbmc_intf - Added install target Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud