This section describes how to configure the timezone using the create480 method.
Operation |
XPATH |
---|---|
edit-config:create |
/ietf-system:system/clock/timezone/timezone-utc-offset/timezone-utc-offset |
Data requirement
Item |
Data |
Description |
---|---|---|
Timezone offset |
480 minutes. |
Indicates the timezone GMT+08:00. |
Request example
<?xml version='1.0' encoding='UTF-8'?> <rpc message-id="39" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <sys:system xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system"> <sys:clock> <sys:timezone-utc-offset>480</sys:timezone-utc-offset> </sys:clock> </sys:system> </config> </edit-config> </rpc>
Response example
Sample of successful response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="39"> <ok/> </rpc-reply>
Sample of failed response
<?xml version='1.0' encoding='UTF-8'?> <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="40"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>parse rpc config error.</error-message> </rpc-error </rpc-reply>