This capability indicates that the device is capable to confirm configurations. In other words, the <commit> message delivered in this instance does not directly commit the configuration and depends on the next <commit> message to trigger the configuration commitment.
The <commit> operation can carry the <confirmed> and <confirm-timeout> parameters.
This capability is valid only when the candidate configuration capability is supported. It is mainly used in service trial running and verification scenarios.
Submit the current configuration and set the timeout period for confirming the <commit> operation to 120s:
RPC request:
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <commit> <confirmed/> <confirm-timeout>120</confirm-timeout> </commit> </rpc>
RPC reply:
<rpc-reply message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <ok/> </rpc-reply>
The <commit> operation can carry the <persist> and <persist-id> parameters.
If a <confirmed-commit> message carries the <persist> parameter, the trial run operation created using <confirmed-commit> is still effective after the associated session is terminated. The device allows a message to carry the <persist-id> parameter to update an existing trial-run operation.
Carry the <persist> parameter in a message for the <commit> operation:
RPC request:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3"> <commit> <confirmed/> <persist>123</persist> </commit> </rpc>
RPC reply:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3"> <ok/> </rpc-reply>
Carry the <persist-id> parameter in a message for the <commit> operation:
RPC request:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <commit> <confirmed/> <persist-id>123</persist-id> </commit> </rpc>
RPC reply:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <ok/> </rpc-reply>
The <cancel-commit> operation is supported. The <persist-id> parameter can be carried to eliminate or terminate the trial operation that is being executed, which is created using <confirmed-commit> with the <persist> parameter.
RPC request:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <cancel-commit> <persist-id>IQ,d4668</persist-id> </cancel-commit> </rpc>
RPC reply:
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> <ok/> </rpc-reply>