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).
Interface Backup

Interface Backup

Data Model

The data model file matching interface backup is huawei-interfaces-standby.yang.

Table 3-1698 Interface standby

Object

Description

interfaces-standby

Indicates that the object of requesting an operation (configuration or deletion) is interface backup configuration. It is only used to contain sub-objects, but does not have any data meaning.

huawei-interfaces-standby/primary-interfaces/primary-interface/primary-if

Indicates the type and number of a primary interface.

huawei-interfaces-standby/primary-interfaces/primary-interface/standby-interfaces/standby-if

Indicates the type and number of the standby interface of the primary interface.

huawei-interfaces-standby/standby-interfaces/standby-interface/standby-if

Indicates the type and number of a standby interface.

huawei-interfaces-standby/standby-interfaces/standby-interface/track-type/nqa-track/admin-name

Indicates the NQA administrator name. The value is a string of 1 to 32 case-sensitive characters, excluding question marks (?), en dashes (-), a single or consecutive quotation marks (").

huawei-interfaces-standby/standby-interfaces/standby-interface/track-type/nqa-track/test-name

Indicates the NQA instance name. The value is a string of 1 to 32 case-sensitive characters, excluding question marks (?), en dashes (-), a single or consecutive quotation marks (").

huawei-interfaces-standby/standby-interfaces/standby-interface/track-type/nqa-track/group-name

Indicates the NQA group name. The value is a string of 1 to 32 case-sensitive characters without any space.

Configuring Standby Interfaces for a Primary Interface

This section describes how to configure one or more standby interfaces for a primary interface.

Table 3-1699 Configuring standby interfaces for a primary interface

Operation

XPATH

edit-config:default

  • huawei-interfaces-standby/primary-interfaces/primary-interface
  • huawei-interfaces-standby/primary-interfaces/primary-interface/standby-interfaces
Data Requirements
Table 3-1700 Configuring standby interfaces for a primary interface

Item

Data

Description

Primary interface

GigabitEthernet0/0/2

Configure a standby interface, including the interface type and number for a primary interface.

Standby interface

GigabitEthernet0/0/3

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_d996134400ae48f0bff5abfe6146442e"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <primary-interfaces xmlns="urn:huawei:params:xml:ns:yang:hw-ifstandby"> 
    <primary-interface> 
     <primary-if>GigabitEthernet0/0/2</primary-if> 
     <standby-interfaces> 
     <standby-interface> 
      <standby-if>GigabitEthernet0/0/3</standby-if> 
     </standby-interface> 
     </standby-interfaces> 
    </primary-interface> 
   </primary-interfaces> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Deleting Standby Interfaces of a Primary Interface

This section describes how to delete standby interfaces of a primary interface.

Table 3-1701 Deleting standby interfaces of a primary interface

Operation

XPATH

edit-config:remove

  • huawei-interfaces-standby/primary-interfaces/primary-interface
  • huawei-interfaces-standby/primary-interfaces/primary-interface/standby-interfaces
Data Requirements
Table 3-1702 Deleting standby interfaces of a primary interface

Item

Data

Description

Primary interface

GigabitEthernet0/0/2

Delete standby interfaces of a primary interface.

Standby interface

GigabitEthernet0/0/3

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_59e7a7787997402a856665e5fca02774"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <primary-interfaces xmlns="urn:huawei:params:xml:ns:yang:hw-ifstandby"> 
    <primary-interface xc:operation="remove"> 
     <primary-if>GigabitEthernet0/0/2</primary-if> 
     <standby-interfaces> 
      <standby-interface> 
       <standby-if>GigabitEthernet0/0/3</standby-if> 
      </standby-interface> 
     </standby-interfaces> 
    </primary-interface> 
   </primary-interfaces> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Configuring a Track NQA Instance for a Standby Interface

This section describes how to configure a track NQA instance for a standby interface to implement association between the standby interface and NQA.

Table 3-1703 Configuring a track NQA instance for a standby interface

Operation

XPATH

edit-config:default

  • huawei-interfaces-standby/standby-interfaces/standby-interface
  • huawei-interfaces-standby/standby-interfaces/standby-interface/nqa-track
Data Requirements
Table 3-1704 Configuring a track NQA instance for a standby interface

Item

Data

Description

Standby interface

GigabitEthernet0/0/3

Configure a track NQA instance, including the NQA administrator name and NQA instance name for a standby interface.

NQA administrator name

admin

NQA instance name

icmptest

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_d996134400ae48f0bff5abfe6146442e"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <standby-interfaces xmlns="urn:huawei:params:xml:ns:yang:hw-ifstandby"> 
    <standby-interface> 
     <standby-if>GigabitEthernet0/0/3</standby-if> 
     <nqa-track> 
      <admin-name>admin</admin-name> 
      <test-name>icmptest</test-name> 
     </nqa-track> 
    </standby-interface> 
   </standby-interfaces> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Deleting a Track NQA Instance from a Standby Interface

This section describes how to delete a track NQA instance from a standby interface.

Table 3-1705 Deleting a track NQA instance from a standby interface

Operation

XPATH

edit-config:remove

  • huawei-interfaces-standby/standby-interfaces/standby-interface
  • huawei-interfaces-standby/standby-interfaces/standby-interface/nqa-track
Data Requirements
Table 3-1706 Deleting a track NQA instance from a standby interface

Item

Data

Description

Standby interface

GigabitEthernet0/0/3

Delete a track NQA instance, including the NQA administrator name and NQA instance name from a standby interface.

NQA administrator name

admin

NQA instance name

icmptest

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_59e7a7787997402a856665e5fca02774"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <standby-interfaces xmlns="urn:huawei:params:xml:ns:yang:hw-ifstandby"> 
    <standby-interface xc:operation="remove"> 
     <standby-if>GigabitEthernet0/0/3</standby-if> 
     <nqa-track> 
      <admin-name>admin</admin-name> 
      <test-name>icmptest</test-name> 
     </nqa-track> 
    </standby-interface> 
   </standby-interfaces> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Configuring a Track NQA Group for a Standby Interface

This section describes how to configure a track NQA group for a standby interface.

Table 3-1707 Configuring a track NQA group for a standby interface

Operation

XPATH

edit-config:default

  • huawei-interfaces-standby/standby-interfaces/standby-interface
  • huawei-interfaces-standby/standby-interfaces/standby-interface/nqa-track
Data Requirements
Table 3-1708 Configuring a track NQA group for a standby interface

Item

Data

Description

Standby interface

GigabitEthernet0/0/3

Configure a track NQA group for a standby interface.

NQA group name

groupicmp

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_d996134400ae48f0bff5abfe6146442e"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <standby-interfaces xmlns="urn:huawei:params:xml:ns:yang:hw-ifstandby"> 
    <standby-interface> 
     <standby-if>GigabitEthernet0/0/3</standby-if> 
     <nqa-track> 
      <group-name>groupicmp</group-name-name> 
     </nqa-track> 
    </standby-interface> 
   </standby-interfaces> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Deleting a Track NQA Group from a Standby Interface

This section describes how to delete a track NQA group from a standby interface.

Table 3-1709 Deleting a track NQA group from a standby interface

Operation

XPATH

edit-config:remove

  • huawei-interfaces-standby/standby-interfaces/standby-interface
  • huawei-interfaces-standby/standby-interfaces/standby-interface/nqa-track
Data Requirements
Table 3-1710 Deleting a track NQA group from a standby interface

Item

Data

Description

Standby interface

GigabitEthernet0/0/3

Delete a track NQA group from a standby interface.

NQA group name

groupicmp

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="NETCONFIG_59e7a7787997402a856665e5fca02774"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <standby-interfaces xmlns="urn:huawei:params:xml:ns:yang:hw-ifstandby"> 
    <standby-interface xc:operation="remove"> 
     <standby-if>GigabitEthernet0/0/3</standby-if> 
     <nqa-track> 
      <group-name-name>groupicmp</group-name-name> 
     </nqa-track> 
    </standby-interface> 
   </standby-interfaces> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

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

Document ID: EDOC1100022096

Views: 8324

Downloads: 69

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