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).
DST Information Management

DST Information Management

NOTE:

Only V300R003C10 and later version support the function.

Data Model

The data model file matching daylight saving time (DST) information management is huawei-system.yang.

Table 3-2128 Data model of DST information

Object

Description

/ietf-system:system/ietf-system:clock/huawei-system:daylight/daylight-name

Indicates the name of the DST zone. The value is a string of 1 to 32 characters.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/hour

Indicates the start time of the DST. The start time is in 24-hour format HH:MM. HH specifies the hour, which is an integer ranging from 0 to 23. MM specifies the minute, which is an integer ranging from 0 to 59. If MM is not specified, the value is 0. You must enter at least one digit to specify HH. For example, when you enter 0, the start time is 00:00.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/month

Indicates the start day of the DST in a year. The start day is in the format MM:DD. MM specifies the month, which is an integer ranging from 1 to 12, and DD specifies the day, which is an integer ranging from 1 to 31.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/week-start

Indicates the start week of the DST in a month. The value is of enumerated type and can be fifth, first, second, third, fourth, and last.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/day-start

Indicates the start date of the DST in a specified week. The value is of enumerated type and can be Mon, Tue, Wed, Thu, Fri, Sat, and Sun.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/month-start

Indicates the start month of the DST in a year. The value is of enumerated type and can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/hour

Indicates the end time of the DST. The end time is in 24-hour format HH:MM. HH specifies the hour, which is an integer ranging from 0 to 23. MM specifies the minute, which is an integer ranging from 0 to 59. If MM is not specified, the value is 0. You must enter at least one digit to specify HH. For example, when you enter 0, the start time is 00:00.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/week-start

Indicates the end week of the DST in a month. The value is of enumerated type and can be fifth, first, second, third, fourth, and last.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/day-start

Indicates the end data of the DST in a specified week. The value is of enumerated type and can be Mon, Tue, Wed, Thu, Fri, Sat, and Sun.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/month-start

Indicates the end month of the DST in a year. The value is of enumerated type and can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/month

Indicates the end date of the DST in a year. The end day is in the format MM:DD. MM specifies the month, which is an integer ranging from 1 to 12, and DD specifies the day, which is an integer ranging from 1 to 31.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/repeating-offset

Specifies the DST offset. The offset is in 24-hour format HH:MM. HH specifies the hour, which is an integer ranging from 0 to 23. MM specifies the minute, which is an integer ranging from 0 to 59. If MM is not specified, the value is 0. You must enter at least one digit to specify HH.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-start

Indicates the start year of the DST. The start year is in the format YYYY and ranges from 2000 to 2037.

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-end

Indicates the end year of the DST. The end year is in the format YYYY and ranges from 2000 to 2037.

Configuring DST Information (Week + Week)

This section provides a sample of configuring DST information (week + week).

Table 3-2129 Configuring DST information (week + week)

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:clock/huawei-system:daylight/daylight-name

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/week-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/day-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/month-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/week-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/day-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/month-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/repeating-offset

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-end

Data Requirements
Table 3-2130 Configuring DST information (week + week)

Item

Data

Description

Name of the DST zone

bbbb

Set the bbbb time zone to the DST zone. The detailed information is as follows:

  • Start time: 11:11 on Monday in the first week of February
  • End time: 12:12 on Monday in the first week of March
  • Offset: 1 hour and 30 minutes
  • Start year: 2017
  • End year: 2037

Start time of the DST

11:11 on Monday in the first week of February

End time of the DST

12:12 on Monday in the first week of March

DST offset

01:30

Start year of the DST

2017

End year of the DST

2037

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">
    <clock>
     <daylight xmlns="urn:huawei:params:xml:ns:yang:huawei-system" xc:operation="merge" >
      <daylight-name>bbbb</daylight-name>
      <start-time>
       <hour>11:11</hour>      
       <week-start>first</week-start>
       <day-start>Mon</day-start>
       <month-start>Feb</month-start>     
      </start-time>
      <end-time>
       <hour>12:12</hour>       
       <week-start>first</week-start>
       <day-start>Mon</day-start>
       <month-start>Mar</month-start>      
      </end-time>
      <repeating-offset>01:30</repeating-offset>
      <year-start>2017</year-start>
      <year-end>2037</year-end>    
     </daylight>
    </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>  

Configuring DST Information (Week + Date)

This section provides a sample of configuring DST information (week + date).

Table 3-2131 Configuring DST information (week + date)

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:clock/huawei-system:daylight/daylight-name

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/week-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/day-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/month-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/month

/ietf-system:system/ietf-system:clock/huawei-system:daylight/repeating-offset

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-end

Data Requirements
Table 3-2132 Configuring DST information (week + date)

Item

Data

Description

Name of the DST zone

bbbb

Set the bbbb time zone to the DST zone. The detailed information is as follows:

  • Start time: 11:11 on Monday in the first week of February
  • End time: 12:12 on October 10
  • Offset: 1 hour and 30 minutes
  • Start year: 2017
  • End year: 2037

Start time of the DST

11:11 on Monday in the first week of February

End time of the DST

12:12 on October 10

DST offset

01:30

Start year of the DST

2017

End year of the DST

2037

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">
    <clock>
     <daylight xmlns="urn:huawei:params:xml:ns:yang:huawei-system" xc:operation="merge" >
      <daylight-name>bbbb</daylight-name>
      <start-time>
       <hour>11:11</hour>      
       <week-start>first</week-start>
       <day-start>Mon</day-start>
       <month-start>Feb</month-start>     
      </start-time>
      <end-time>
       <hour>12:12</hour>       
       <month>10-10</month>      
      </end-time>
      <repeating-offset>01:30</repeating-offset>
      <year-start>2017</year-start>
      <year-end>2037</year-end>    
     </daylight>
    </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>  

Configuring DST Information (Date + Week)

This section provides a sample of configuring DST information (date + week).

Table 3-2133 Configuring DST information (date + week)

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:clock/huawei-system:daylight/daylight-name

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/month

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/week-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/day-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/month-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/repeating-offset

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-end

Data Requirements
Table 3-2134 Configuring DST information (date + week)

Item

Data

Description

Name of the DST zone

bbbb

Set the bbbb time zone to the DST zone. The detailed information is as follows:

  • Start time: 11:11 on February 10
  • End time: 12:12 on Monday in the first week of March
  • Offset: 1 hour and 30 minutes
  • Start year: 2017
  • End year: 2037

Start time of the DST

11:11 on February 10

End time of the DST

12:12 on Monday in the first week of March

DST offset

01:30

Start year of the DST

2017

End year of the DST

2037

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">
    <clock>
     <daylight xmlns="urn:huawei:params:xml:ns:yang:huawei-system" xc:operation="merge" >
      <daylight-name>bbbb</daylight-name>
      <start-time>
       <hour>11:11</hour>      
       <month>02-10</month>     
      </start-time>
      <end-time>
       <hour>12:12</hour>       
       <week-start>first</week-start>
       <day-start>Mon</day-start>
       <month-start>Mar</month-start>      
      </end-time>
      <repeating-offset>01:30</repeating-offset>
      <year-start>2017</year-start>
      <year-end>2037</year-end>    
     </daylight>
    </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>  

Configuring DST Information (Date + Date)

This section provides a sample of configuring DST information (date + date).

Table 3-2135 Configuring DST information (date + date)

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:clock/huawei-system:daylight/daylight-name

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/start-time/month

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/hour

/ietf-system:system/ietf-system:clock/huawei-system:daylight/end-time/month

/ietf-system:system/ietf-system:clock/huawei-system:daylight/repeating-offset

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-start

/ietf-system:system/ietf-system:clock/huawei-system:daylight/year-end

Data Requirements
Table 3-2136 Configuring DST information (date + date)

Item

Data

Description

Name of the DST zone

bbbb

Set the bbbb time zone to the DST zone. The detailed information is as follows:

  • Start time: 11:11 on May 11
  • End time: 12:12 on October 10
  • Offset: 1 hour and 30 minutes
  • Start year: 2017
  • End year: 2037

Start time of the DST

11:11 on May 11

End time of the DST

12:12 on October 10

DST offset

01:30

Start year of the DST

2017

End year of the DST

2037

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">
    <clock>
     <daylight xmlns="urn:huawei:params:xml:ns:yang:huawei-system">
      <daylight-name>bbbb</daylight-name>
      <start-time>
       <hour>11:11</hour>      
       <month>05-11</month>     
      </start-time>
      <end-time>
       <hour>12:12</hour>       
       <month>10-10</month>
      </end-time>
      <repeating-offset>01:30</repeating-offset>
      <year-start>2017</year-start>
      <year-end>2037</year-end>   
     </daylight>
    </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 DST Information

This section provides a sample of deleting DST information.

Table 3-2137 Deleting DST information

Operation

XPATH

edit-config:remove

/ietf-system:system/ietf-system:clock/huawei-system:daylight

Data Requirements
Table 3-2138 Deleting DST information

Item

Data

Description

DST

-

Delete all DST configuration information.

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">
    <clock>
     <daylight xmlns="urn:huawei:params:xml:ns:yang:huawei-system" xc:operation="remove">
     </daylight>
    </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: 8195

Downloads: 69

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