Adding system configuration object & UT

This commit adds the system config object that implements
the SystemConfiguration interface.

The hostname property under this interface will initially
be set from the bios table when the service starts.

Whenever user sets the property, the same will be updated
in the bios table.

busctl tree xyz.openbmc_project.Network.Hypervisor
└─/xyz
  └─/xyz/openbmc_project
    └─/xyz/openbmc_project/network
      └─/xyz/openbmc_project/network/hypervisor
        └─/xyz/openbmc_project/network/hypervisor/config

Tested By:

busctl set-property xyz.openbmc_project.Network.Hypervisor
/xyz/openbmc_project/network/hypervisor/config
xyz.openbmc_project.Network.SystemConfiguration HostName s "vmi HN"

busctl introspect xyz.openbmc_project.Network.Hypervisor /xyz/openbmc_project/network/hypervisor/config
NAME                                            TYPE      SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable             interface -         -            -
.Introspect                                     method    -         s            -
org.freedesktop.DBus.Peer                       interface -         -            -
.GetMachineId                                   method    -         s            -
.Ping                                           method    -         -            -
org.freedesktop.DBus.Properties                 interface -         -            -
.Get                                            method    ss        v            -
.GetAll                                         method    s         a{sv}        -
.Set                                            method    ssv       -            -
.PropertiesChanged                              signal    sa{sv}as  -            -
xyz.openbmc_project.Network.SystemConfiguration interface -         -            -
.DefaultGateway                                 property  s         ""           emits-change writable
.DefaultGateway6                                property  s         ""           emits-change writable
.HostName                                       property  s         "vmi HN"     emits-change writable

busctl call  xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager GetAttribute s vmi_hostname
svv "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.String" s "vmi HN" s ""

Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>
Change-Id: Ib3afaef2da039d18cc672a1759b721698f9c14e2
9 files changed
tree: 8a38f72e018ee12c7036a14e609a681e0bf44b39
  1. docs/
  2. gen/
  3. src/
  4. subprojects/
  5. test/
  6. yaml/
  7. .clang-format
  8. .gitignore
  9. .shellcheck
  10. LICENSE
  11. MAINTAINERS
  12. meson.build
  13. meson_options.txt
  14. OWNERS
  15. README.md
  16. xyz.openbmc_project.Network.conf.in
  17. xyz.openbmc_project.Network.service.in
README.md

To Build

To build this package, do the following steps:

    1. meson build
    2. ninja -C build