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/Create.interface.yaml b/yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml
new file mode 100644
index 0000000..e03b411
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Network/StaticRoute/Create.interface.yaml
@@ -0,0 +1,29 @@
+description: >
+methods:
+ - name: StaticRoute
+ description: >
+ Create a static route entry.
+ parameters:
+ - name: Destination
+ type: string
+ description: >
+ Destination Address.
+ - name: Gateway
+ type: string
+ description: >
+ Next hop address to reach destination address
+ - name: PrefixLength
+ type: size
+ description: >
+ Number of network bits in the address
+ - name: ProtocolType
+ type: enum[xyz.openbmc_project.Network.IP.Protocol]
+ description: >
+ protocol type can be IPv4 or IPv6 etc.
+ returns:
+ - name: Path
+ type: object_path
+ description: >
+ The path for the created static route object.
+ errors:
+ - xyz.openbmc_project.Common.Error.InvalidArgument