|
|
| Yang error messages - RFC7950 yang defined error-messages are supported for the following yang statements. - 7.5.4. The must's Substatements
- 9.2.4.1. The range's Substatements
- 9.4.4.1. The length's Substatements
- 9.4.5.1. The pattern's Substatements
Example:[...] must "./ssh-connections + ./tls-connections <= 100" { error-message "The total number of connections (SSH + TLS) needs to be less than or equal with 100."; } [...] Result in odl-restconf-nb-baermann [...] { "errors": { "error": [ { "error-type": "application", "error-tag": "operation-failed", "error-message": "Commit of transaction org.opendaylight.netconf.sal.connect.netconf.sal.tx.WriteCandidateRunningTx@2aa1fb85 failed", "error-info": "RemoteDevice{NTS-manager}:RPC during tx failed. The total number of connections (SSH + TLS) needs to be less than or equal with 100." } ] } }[...]
Result in odl-restconf-nb-RFC8040{ "errors": { "error": [ { "error-type": "application", "error-message": "RemoteDevice{NTS-manager}:RPC during tx failed. The total number of connections (SSH + TLS) needs to be done.... less than or equal with 100.", "error-tag": "operation-failed", "error-info": "TransactionCommitFailedException{message=Commit of transaction org.opendaylight.netconf.sal.connect.netconf.sal.tx.WriteCandidateRunningTx@adb0c99 failed, errorList=[RpcError [message=Commit of transaction org.opendaylight.netconf.sal.connect.netconf.sal.tx.WriteCandidateRunningTx@adb0c99 failed, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=NetconfDocumentedException{message=RemoteDevice{NTS-manager}:RPC during tx failed. The total number of connections (SSH + TLS) needs to be less than or equal with 100., errorType=APPLICATION, errorTag=OPERATION_FAILED, errorSeverity=ERROR, errorInfo={}}]]}" } ] } } |