Update Create.interface.yaml to return errors
-elog<InvalidArgument> is throwing an exception in bad path
testing and we don't have catch for it in current code.
-Updated the yaml file(added error) which will catch the exception
and will return error.
Fixes openbmc/openbmc#2576
Change-Id: If3db07e5d96231189bd2742cc6803b480b9ac462
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/xyz/openbmc_project/Network/IP/Create.interface.yaml b/xyz/openbmc_project/Network/IP/Create.interface.yaml
index a02e443..38805e7 100644
--- a/xyz/openbmc_project/Network/IP/Create.interface.yaml
+++ b/xyz/openbmc_project/Network/IP/Create.interface.yaml
@@ -20,3 +20,5 @@
type: string
description: >
Gateway Address.
+ errors:
+ - xyz.openbmc_project.Common.Error.InvalidArgument