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
Signed-off-by: Sunitha Harish <sunithaharish04@gmail.com>
Change-Id: I1a5d8132857c408d4fb7af43f1d2782bed271a59
diff --git a/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml b/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-tacoma.override.yml
new file mode 100644
index 0000000..9e626a6
--- /dev/null
+++ b/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
+
+