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).
Link Detection

Link Detection

NOTE:

This feature is supported in V300R003C10 and later versions.

Data Model

The data model file matching link detection is huawei-transport-network-point.yang.

Table 3-2288 Data model of link detection

Object

Description

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/interval

Specifies the interval for link detection. The value is an integer in the range from 10 to 2000, in milliseconds.

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/count

Specifies the number of times for link detection. The value is an integer in the range from 3 to 50.

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/packet-precedence

Specifies the priority of link detection packets. The value is in the range from 0 to 7. A larger value indicates a higher priority.

Configuring Related Information About Link Detection

Table 3-2289 Configuring related information about link detection

Operation

XPATH

edit-config:merge

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/interval

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/count

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/packet-precedence

Data Requirements
Table 3-2290 Configuring related information about link detection

Item

Data

Description

Interval for link detection

10

Configure the interval for link detection, number of times for link detection, and priority of detection packets.

Number of times for link detection

12

Priority of detection packets

5

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point" xc:operation="merge"> 
    <local-site> 
     <link-fail-detect  xc:operation="merge"> 
      <interval>10</interval> 
      <count>12</count> 
      <packet-precedence>5</packet-precedence> 
     </link-fail-detect> 
    </local-site> 
   </transport-network-point> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Deleting Related Information About Link Detection

Table 3-2291 Deleting related information about link detection

Operation

XPATH

edit-config:remove

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/interval

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/count

huawei-transport-network-point:transport-network-point/local-site/link-fail-detect/packet-precedence

Data Requirements
Table 3-2292 Deleting related information about link detection

Item

Data

Description

Interval for link detection

10

Delete the interval for link detection, number of times for link detection, and priority of detection packets.

Number of times for link detection

12

Priority of detection packets

5

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_358a8397cf4449d487cec927992185e1"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <transport-network-point xmlns="urn:huawei:yang:huawei-transport-network-point" xc:operation="merge"> 
    <local-site> 
     <link-fail-detect  xc:operation="remove"> 
      <interval>10</interval> 
      <count>12</count> 
      <packet-precedence>5</packet-precedence> 
     </link-fail-detect> 
    </local-site> 
   </transport-network-point> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Document ID: EDOC1100022096

Views: 8373

Downloads: 69

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