From 4909eea10c4bd4ef19a940d81a48351a236ac1c3 Mon Sep 17 00:00:00 2001 From: Sunitha Harish Date: Tue, 21 Jan 2020 05:08:44 -0600 Subject: Add Hypervisor Virtual Management D-Bus interface objects This commit adds a new yaml file for holding the Hypervisor's Virtual Management Interface's network objects. This models two ethernet interfaces to the hypervisor and its static IPv4 attributes. Tested by: busctl tree xyz.openbmc_project.Settings (From meta-ibm rev: ae4ab28128052a57f8ddd4c910e27e04f92305d6) Signed-off-by: Sunitha Harish Change-Id: I9a32d943867d26fbf215f248ab944e6f8750f415 Signed-off-by: Andrew Geissler --- ...HypervisorInterface-default-tacoma.override.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml (limited to 'meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml') 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 new file mode 100644 index 000000000..9e626a606 --- /dev/null +++ b/meta-ibm/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml @@ -0,0 +1,34 @@ +/xyz/openbmc_project/network/hypervisor: + - Interface: xyz.openbmc_project.Network.SystemConfiguration + Properties: + HostName: + Default: '""' + DefaultGateway: + Default: '"0.0.0.0"' + +/xyz/openbmc_project/network/hypervisor/eth0: + - Interface: xyz.openbmc_project.Network.MACAddress + Properties: + MACAddress: + Default: '"00:00:00:00:00:00"' + Validation: + Type: "regex" + Validator: '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$' + +/xyz/openbmc_project/network/hypervisor/eth0/ipv4/addr0: + - Interface: xyz.openbmc_project.Network.IP + Properties: + Address: + Default: '"0.0.0.0"' + PrefixLength: + Default: 0 + Validation: + Type: "range" + Validator: 0..32 + Unit: "bits" + Origin: + Default: IP::AddressOrigin::Static + Type: + Default: IP::Protocol::IPv4 + + -- cgit v1.2.3 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/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml') 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