From 95fafa87ac341b90ade6367b8bfff6fab4b8e8d2 Mon Sep 17 00:00:00 2001 From: Nagaraju Goruganti Date: Sun, 30 Sep 2018 23:25:42 -0500 Subject: Declare errors in config interface The config interface can throw an InternalFailure or InvalidArgument errors. Change-Id: Ida1a690e3b3137e621b27b788cfde28b7f31da5f Signed-off-by: Nagaraju Goruganti --- xyz/openbmc_project/User/Ldap/Config.interface.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/xyz/openbmc_project/User/Ldap/Config.interface.yaml b/xyz/openbmc_project/User/Ldap/Config.interface.yaml index 1f921dd..d644eef 100644 --- a/xyz/openbmc_project/User/Ldap/Config.interface.yaml +++ b/xyz/openbmc_project/User/Ldap/Config.interface.yaml @@ -7,29 +7,45 @@ properties: description: > Specifies whether to use SSL or not. default: false + errors: + - xyz.openbmc_project.Common.Error.InternalFailure - name: LDAPServerURI type: string description: > Specifies the LDAP URI of the server to connect to. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + - xyz.openbmc_project.Common.Error.InvalidArgument - name: LDAPBindDN type: string description: > Specifies the distinguished name with which to bind to the directory server for lookups. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + - xyz.openbmc_project.Common.Error.InvalidArgument - name: LDAPBaseDN type: string description: > Specifies the base distinguished name to use as search base. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + - xyz.openbmc_project.Common.Error.InvalidArgument - name: LDAPBINDDNpassword type: string description: > Specifies the clear text credentials with which to bind. This option is only applicable when used with LDAPBindDN. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + - xyz.openbmc_project.Common.Error.InvalidArgument - name: LDAPSearchScope type: enum[self.SearchScope] description: > Specifies the search scope:subtree, one level or base object. default: 0 + errors: + - xyz.openbmc_project.Common.Error.InternalFailure - name: LDAPType type: enum[self.Type] description: > @@ -37,6 +53,8 @@ properties: OpenLdap. It's just an indication for the LDAP stack running on the BMC, in case the app is implemented in such a way that it has to react differently for AD vs openldap. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure enumerations: - name: SearchScope -- cgit v1.2.1