RPC reply

An <rpc-reply> element is sent in response to every RPC request.

The <rpc-reply> element contains the mandatory attribute message-id copied from the corresponding RPC request, along with any additional attributes that are present in the RPC request.

For successfully processed <get> or <get-config> requests, the response data is encoded as the content of the <rpc-reply> element.

For successfully processed <edit-config> or <close-session> requests, the <ok> element is encoded as the content of the <rpc-reply> element.

For unsuccessful RPC requests, one or more <rpc-error> elements are encoded inside the <rpc-reply> element.