Add Network Static Route D-bus Interface
Static routing provides the network administrator with full
control over the routing behavior of the BMC network.
This commit adds static route d-bus interface and properties
required.
Change-Id: Ib6abea1a9ce2f55cb54489c334b0072bf4fb726e
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>
diff --git a/yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml b/yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml
new file mode 100644
index 0000000..127d1ea
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Network/StaticRoute.interface.yaml
@@ -0,0 +1,33 @@
+description: >
+ This interface defines network static routes
+
+properties:
+ - name: Destination
+ type: string
+ description: >
+ The value of this property shall be a destination IP address, only
+ destination network IP address allowed. it does not allow hostname.
+ errors:
+ - xyz.openbmc_project.Common.Error.NotAllowed
+
+ - name: Gateway
+ type: string
+ description: >
+ The value of this property shall be a next hop address assigned to the
+ ethernet interface to reach destination address.
+ errors:
+ - xyz.openbmc_project.Common.Error.NotAllowed
+
+ - name: PrefixLength
+ type: size
+ description: >
+ This is the number of network bits in the address.
+ errors:
+ - xyz.openbmc_project.Common.Error.NotAllowed
+
+ - name: ProtocolType
+ type: enum[xyz.openbmc_project.Network.IP.Protocol]
+ description: >
+ Protocol type can be IPv4 or IPv6 etc.
+ errors:
+ - xyz.openbmc_project.Common.Error.NotAllowed