diff options
author | Sunitha Harish <sunithaharish04@gmail.com> | 2020-03-17 17:05:52 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-07-08 02:40:37 +0300 |
commit | 77e1c0177dcf5809fbbcd608fb866162081ad803 (patch) | |
tree | 51f0d8259511ed1b4bf1fba55966b4578dc09a76 /meta-ibm/recipes-phosphor/settings | |
parent | 4909eea10c4bd4ef19a940d81a48351a236ac1c3 (diff) | |
download | openbmc-77e1c0177dcf5809fbbcd608fb866162081ad803.tar.xz |
Add DHCP D-Bus objects for Hypervisor Virtual Management Interface
This commit adds the D-Bus objects to enable the DHCP on the
hypervisor's virtual management interface.
New attributes are :
1. DHCPEnabled - At Interface level.
Values will be "v4/v6/both/none". Default is "none"
2. Enabled - At IPv4 object level : To indicate if the
Virtual Management Interface has consumed the IP
address or not.
Tested By:
1. busctl introspect xyz.openbmc_project.Settings /xyz/openbmc_project/network/hypervisor
2. busctl introspect xyz.openbmc_project.Settings /xyz/openbmc_project/network/hypervisor/eth0
3. busctl introspect xyz.openbmc_project.Settings /xyz/openbmc_project/network/hypervisor/eth0/ipv4/addr0
4. On rainier : similar tests for eth1
(From meta-ibm rev: 988412a2463a58f85f50648f9497a8779203087e)
Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com>
Change-Id: I734347a8953cd11955eeaacfd67b815810587046
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-ibm/recipes-phosphor/settings')
2 files changed, 24 insertions, 1 deletions
diff --git a/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-rainier.override.yml b/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-rainier.override.yml index fea34cc89..ecc95317f 100644 --- a/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-rainier.override.yml +++ b/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-rainier.override.yml @@ -14,6 +14,10 @@ Validation: Type: "regex" Validator: '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$' + - Interface: xyz.openbmc_project.Network.EthernetInterface + Properties: + DHCPEnabled: + Default: EthernetInterface::DHCPConf::none /xyz/openbmc_project/network/hypervisor/eth0/ipv4/addr0: - Interface: xyz.openbmc_project.Network.IP @@ -30,6 +34,10 @@ Default: IP::AddressOrigin::Static Type: Default: IP::Protocol::IPv4 + - Interface: xyz.openbmc_project.Object.Enable + Properties: + Enabled: + Default: 'false' /xyz/openbmc_project/network/hypervisor/eth1: - Interface: xyz.openbmc_project.Network.MACAddress @@ -39,6 +47,10 @@ Validation: Type: "regex" Validator: '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$' + - Interface: xyz.openbmc_project.Network.EthernetInterface + Properties: + DHCPEnabled: + Default: EthernetInterface::DHCPConf::none /xyz/openbmc_project/network/hypervisor/eth1/ipv4/addr0: - Interface: xyz.openbmc_project.Network.IP @@ -55,4 +67,8 @@ Default: IP::AddressOrigin::Static Type: Default: IP::Protocol::IPv4 + - Interface: xyz.openbmc_project.Object.Enable + Properties: + Enabled: + Default: 'false' diff --git a/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml b/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml index 9e626a606..e452cbf68 100644 --- a/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml +++ b/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml @@ -14,6 +14,10 @@ Validation: Type: "regex" Validator: '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$' + - Interface: xyz.openbmc_project.Network.EthernetInterface + Properties: + DHCPEnabled: + Default: EthernetInterface::DHCPConf::none /xyz/openbmc_project/network/hypervisor/eth0/ipv4/addr0: - Interface: xyz.openbmc_project.Network.IP @@ -30,5 +34,8 @@ Default: IP::AddressOrigin::Static Type: Default: IP::Protocol::IPv4 - + - Interface: xyz.openbmc_project.Object.Enable + Properties: + Enabled: + Default: 'false' |