262
The name of the specified configuration file must start with the storage media name and end with the
extension .cfg. The total length of the save path and file name must be no more than 191 characters.
If the text includes the file column, you must specify the file name. The specified file will be used as
the next-startup configuration file. If the text does not include the file column, the configuration is
automatically saved to the default main next-startup configuration file.
After receiving the save request, the device returns a response in the following format if the save
operation is successful:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Rolling back the configuration based on a configuration file
# Copy the following text to the client to roll back the configuration:
<?xml version="1.0" encoding="UTF-8"?>
<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<rollback>
<file>Specify the configuration file name</file>
</rollback>
</rpc>
The name of the specified configuration file must start with the storage media name and end with the
extension .cfg. The total length of the save path and file name must be no more than 191 characters.
After receiving the rollback request, the device returns a response in the following format if the
rollback operation is successful:
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply message-id="101"
xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<ok/>
</rpc-reply>
Rolling back the configuration based on a rollback point
You can roll back the running configuration based on a rollback point when one of the following
situations occurs:
• A NETCONF client sends a rollback request.
• A NETCONF client stays idle longer than the rollback idle timeout time.
• A NETCONF client is disconnected from the device.
To roll back the configuration based on a rollback point, perform the following tasks:
1. Lock the system.
Multiple users might simultaneously use NETCONF to configure the device. As a best practice,
lock the system before rolling back the configuration to prevent other users from modifying the
running configuration.
2. Mark the beginning of a rollbackoperation. For more information, see "Performing the
save-point/begin operation."
3. Configure the device. For more information, see "Performing the edit-config operation."
4. Configure the rollback point. For more information, see "Performing the save-point/commit
operation."