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-rainier.override.yml b/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-rainier.override.yml
new file mode 100644
index 0000000..fea34cc
--- /dev/null
+++ b/recipes-phosphor/settings/phosphor-settings-manager/HypervisorInterface-default-rainier.override.yml
@@ -0,0 +1,58 @@
+/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
+
+/xyz/openbmc_project/network/hypervisor/eth1:
+    - 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/eth1/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
+
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
+
+
diff --git a/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend b/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend
index 1068e1d..db95cda 100644
--- a/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend
+++ b/recipes-phosphor/settings/phosphor-settings-manager_%.bbappend
@@ -3,3 +3,5 @@
 SRC_URI_append_ibm-ac-server += " file://ClearHostSecurityKeys-default-zero.override.yml"
 SRC_URI_append_mihawk = " file://TPMEnable-default-true.override.yml"
 SRC_URI_append = " file://ibm_settings.override.yml"
+SRC_URI_append_rainier = " file://HypervisorInterface-default-rainier.override.yml"
+SRC_URI_append_witherspoon-tacoma = " file://HypervisorInterface-default-tacoma.override.yml"