Avahi: Adding Asset interface in the script to
generate unique hostname

xyz.openbmc_project.Inventory.Item.Bmc is a null
interface where the SerialNumber is not present.
xyz.openbmc_project.Inventory.Decorator.Asset
interface contains the SerialNumber and is replaced
in place of the former interface.

Tested by:

1. Finding SerialNumber in Inventory interface
   - busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/boxelder/bmc

output:
   [[0;1;39mxyz.openbmc_project.Inventory.Decorator.Asset      [[0m interface -         -                  -
   .BuildDate                                          property  s         ""                 emits-change writable
   .Manufacturer                                       property  s         "IPS             " emits-change writable
   .Model                                              property  s         ""                 emits-change writable
   .PartNumber                                         property  s         "01DH137         " emits-change writable
   .SerialNumber                                       property  s         "YL10UF76W015    " emits-change writable

2. Finding hostname
   - hostname

output:
   witherspoon

Signed-off-by: asmithakarun <asmithkr@in.ibm.com>
Change-Id: I28d8ee4844654bbb3f0b90ffd5d71b7147726516
1 file changed
tree: 5d32ac8536b492f757782786f923225ec32c10d1
  1. classes/
  2. conf/
  3. recipes-bsp/
  4. recipes-devtools/
  5. recipes-phosphor/
  6. COPYING.apache-2.0
  7. COPYING.MIT
  8. LICENSE
  9. MAINTAINERS
  10. README.md
README.md

OpenPOWER

meta-openpower is the OpenPOWER layer and should be included in all OpenPOWER systems' bblayers.conf. More information on OpenPOWER can be found here.