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).
Eth-Trunk

Eth-Trunk

Data Model

The data model file matching the Eth-Trunk is huawei-eth-trunk.yang.

Table 3-67 Eth-Trunkdata model

Node

Description

/ietf-interfaces:interfaces/interface/huawei-eth-trunk:eth-trunk/assign-interface

Indicates member interface management in the Eth-Trunk interface view.

NOTE:
  • The Eth-Trunk has been switched to the Layer 3 mode.
  • An Eth-Trunk contains a maximum of eight member interfaces, and these member interfaces must have the same type.

Managing Member Interfaces in the Eth-Trunk Interface View

Adding Member Interfaces in the Eth-Trunk Interface View

This section provides a sample of adding member interfaces in the Eth-Trunk interface view.

Table 3-68 Adding member interfaces in the Eth-Trunk interface view

Operation

XPATH

edit-config:merge

/ietf-interfaces:interfaces/interface/huawei-eth-trunk:eth-trunk/assign-interface

Data Requirements
Table 3-69 Adding member interfaces in the Eth-Trunk interface view

Item

Data

Description

Interface name

eth-trunk 2

Add the following member interfaces in the Eth-Trunk 2 interface view:

GigabitEthernet0/0/1

GigabitEthernet0/0/3

Member interface

GigabitEthernet0/0/1

GigabitEthernet0/0/3

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>       
  <target>        
   <running/>  
  </target>       
  <error-option>rollback-on-error</error-option>                    
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">  
    <interface> 
     <name>eth-trunk 2</name> 
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type> 
     <eth-trunk xmlns="urn:huawei:params:xml:ns:yang:huawei-eth-trunk" xc:operation="merge">   
      <assign-interface>GigabitEthernet0/0/1</assign-interface> 
      <assign-interface>GigabitEthernet0/0/3</assign-interface> 
     </eth-trunk>  
    </interface> 
   </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="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
  <ok/> 
</rpc-reply>
Deleting Member Interfaces in the Eth-Trunk Interface View

This section provides a sample of deleting member interfaces in the Eth-Trunk interface view.

Table 3-70 Deleting member interfaces in the Eth-Trunk interface view

Operation

XPATH

edit-config:remove

/ietf-interfaces:interfaces/interface/huawei-eth-trunk:eth-trunk/assign-interface

Data Requirements
Table 3-71 Deleting member interfaces in the Eth-Trunk interface view

Item

Data

Description

Interface name

eth-trunk 2

Delete the following member interfaces in the Eth-Trunk 2 interface view:

GigabitEthernet0/0/1

GigabitEthernet0/0/3

Member interface

GigabitEthernet0/0/1

GigabitEthernet0/0/3

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de">
 <edit-config>      
  <target>       
   <running/> 
  </target>      
  <error-option>rollback-on-error</error-option>                   
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces"> 
    <interface>
     <name>eth-trunk 2</name>
     <type xmlns:iana="urn:ietf:params:xml:ns:yang:iana-if-type">iana:ethernetCsmacd</type>
     <eth-trunk xmlns="urn:huawei:params:xml:ns:yang:huawei-eth-trunk" xc:operation="remove">  
      <assign-interface>GigabitEthernet0/0/1</assign-interface>
      <assign-interface>GigabitEthernet0/0/3</assign-interface>
     </eth-trunk> 
    </interface>
   </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="DEVICECONFIG_08a6ff32d57a4684b7054a53b32042de"> 
  <ok/> 
</rpc-reply> 
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 8434

Downloads: 69

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