From 77e1c0177dcf5809fbbcd608fb866162081ad803 Mon Sep 17 00:00:00 2001 From: Sunitha Harish Date: Tue, 17 Mar 2020 09:05:52 -0500 Subject: 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 Change-Id: I734347a8953cd11955eeaacfd67b815810587046 Signed-off-by: Andrew Geissler --- .../HypervisorInterface-default-rainier.override.yml | 16 ++++++++++++++++ .../HypervisorInterface-default-tacoma.override.yml | 9 ++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'meta-ibm') 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' -- cgit v1.2.3