EMI.CONF.REVERT
This method will discard any changes made to the system configuration. The method copies the “current” configuration tree into the “new” tree structure to revert back any uncommitted configuration changes.
NOTE! Revert method will copy the current tree structure into the new tree structure. It is not needed to issue a commit request as there should be no changes.
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| session | JSON String | yes | Session ID |
Response
No response result returned if request is successful.
Error Codes
| Reference | Description |
|---|---|
| EOK | No errors (contains warnings) |
| EGENERAL | Some other error |
| ESESSION | Session with the given ID is not found |
Examples
Request to EMI-RPC Server:
{
"EMI-RPC": "1.0",
"id": 2,
"method": "emi.conf.revert",
"params":
{ "session":"" }
}
Response from EMI-RPC Server:
{
"EMI-RPC": "1.0",
"id": 2
}
