附录A. NETCONF错误列表
本部分是规范性的。
对于每个错误标签,都会列出有效的错误类型和错误严重性值以及任何必需的错误信息(如果有)。
error-tag | error-type | error-severity | error-info | Description |
---|---|---|---|---|
in-use | protocol, application | error | none | The request requires a resource that already is in use. |
invalid-value | protocol, application | error | none | The request specifies an unacceptable value for one or more parameters. |
too-big | transport, rpc, protocol, application | error | none | The request or response (that would be generated) is too large for the implementation to handle. |
missing-attribute | rpc, protocol, application | error | An expected attribute is missing. | |
bad-attribute | rpc, protocol, application | error | An attribute value is not correct; e.g., wrong type, out of range, pattern mismatch | |
unknown-attribute | rpc, protocol, application | error | An unexpected attribute is present. | |
missing-element | protocol, application | error | An expected element is missing. | |
bad-element | protocol, application | error | An element value is not correct; e.g., wrong type, out of range, pattern mismatch. | |
unknown-element | protocol, application | error | An unexpected element is present | |
unknown-namespace | protocol, application | error | An unexpected namespace is present | |
access-denied | protocol, application | error | none | Access to the requested protocol operation or data model is denied because authorization failed. |
lock-denied | protocol | error | Access to the requested lock is denied because the lock is currently held by another entity. | |
resource-denied | transport, rpc, protocol, application | error | none | Request could not be completed because of insufficient resources. |
rollback-failed | protocol, application | error | none | Request to roll back some configuration change (via rollback-on-error or |
data-exists | application | error | none | Request could not be completed because the relevant ata model content already exists. For example, a “create” operation was attempted on data that already exists. |
data-missing | application | error | none | Request could not be completed because the relevant data model content does not exist. For example, a “delete” operation was attempted on data that does not exist. |
operation-not-supported | protocol, application | error | none | Request could not be completed because the requested operation is not supported by this implementation. |
operation-failed | rpc, protocol, application | error | none | Request could not be completed because the requested operation failed for some reason not covered by |
partial-operation | application | error | This error-tag is obsolete, and SHOULD NOT be sent by servers conforming to this document. Some part of the requested operation failed or was not attempted for some reason. Full cleanup has not been performed (e.g., rollback not supported) by the server. The error-info container is used to identify which portions of the application data model content for which the requested operation has succeeded ( |
|
malformed-message | rpc | error | none | A message could not be handled because it failed to be parsed correctly. For example, the message is not well-formed XML or it uses an invalid character set. This error-tag is new in :base:1.1 and MUST NOT be sent to old clients. |