No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Local Time Zone Information Management

Local Time Zone Information Management

Data Model

The data model file matching local time zone information management is ietf-system.yang.

Table 3-2121 Data model for local time zone information management

Object

Description

/ietf-system:system/clock/timezone/timezone-utc-offset/timezone-utc-offset

Indicates local time zone information settings. The value is a string of 1 to 32 case-sensitive characters without spaces.

Increasing the Offset of Local Time Zone Information

This section provides a sample of increasing the offset of local time zone information.

Table 3-2122 Increasing the offset of local time zone information

Operation

XPATH

edit-config:merge

/ietf-system:system/clock/timezone/timezone-utc-offset/timezone-utc-offset

Data Requirements
Table 3-2123 Increasing the offset of local time zone information

Item

Data

Description

Offset of local time zone information

200

Increase the offset of local time zone information by 200 minutes, namely, 3 hours 20 minutes 0 seconds.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <clock>
     <timezone-utc-offset>200</timezone-utc-offset>
    </clock>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <ok/>
</rpc-reply>  

Reducing the Offset of Local Time Zone Information

This section provides a sample of reducing the offset of local time zone information.

Table 3-2124 Reducing the offset of local time zone information

Operation

XPATH

edit-config:merge

/ietf-system:system/clock/timezone/timezone-utc-offset/timezone-utc-offset

Data Requirements
Table 3-2125 Reducing the offset of local time zone information

Item

Data

Description

Offset of local time zone information

-200

Reduce the offset of local time zone information by 200 minutes, namely, 3 hours 20 minutes 0 seconds.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <clock>
     <timezone-utc-offset>-200</timezone-utc-offset>
    </clock>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <ok/>
</rpc-reply>  

Deleting Local Time Zone Information Settings

This section provides a sample of deleting local time zone information settings.

Table 3-2126 Deleting local time zone information settings

Operation

XPATH

edit-config:remove

/ietf-system:system/clock/timezone/timezone-utc-offset/timezone-utc-offset

Data Requirements
Table 3-2127 Deleting local time zone information settings

Item

Data

Description

Offset of local time zone information

200

Delete the increased 200-minute offset of local time zone information. In other words, delete the increased 3-hour-20-minute-0-second offset.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="remove">
    <clock>
     <timezone-utc-offset>200</timezone-utc-offset>
    </clock>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <ok/>
</rpc-reply>  
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8303

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next