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

RESTful API Reference

CloudEngine 12800 and 12800E V200R005C10

This document describes the OPS APIs supported by the device, including OPS-supported operations, request examples, elements in the requests, response examples, elements in the responses, and response status codes.
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).
Configure Trunk Interface Attributes

Configure Trunk Interface Attributes

Operation

URI

Description

PUT

/ifmtrunk/TrunkIfs

Configure trunk interface attributes.

  • Request example
    <?xml version="1.0" encoding="UTF-8"?>  
    <TrunkIfs> 
     <TrunkIf operation="merge"> 
          <ifName>Eth-Trunk1</ifName> 
          <minUpNum>1</minUpNum> 
          <maxUpNum>32</maxUpNum> 
          <workMode>Manual</workMode> 
     </TrunkIf> 
    </TrunkIfs>

    Table 9-76 describes elements in requests.

Table 9-76 Elements in requests

Element

Description

TrunkIfs

Specifies a trunk interface list.

TrunkIf

Specifies the trunk interface information.

ifName

Specifies a trunk interface name. The value is a string of 1 to 63 characters.

minUpNum

Specifies the minimum number of trunk links in the Up state.

The value is an integer. The default value is 1. The value range is determined by the number of LAGs that can be manually configured.

The value ranges from 1 to 64 if a maximum of 256 LAGs can be configured.

The value ranges from 1 to 32 if a maximum of 512 LAGs can be configured.

The value ranges from 1 to 16 if a maximum of 1024 LAGs can be configured.

maxUpNum

Specifies the maximum number of links that affect the actual bandwidth of the Layer 2 Eth-Trunk interface.

The value is an integer. The value range is determined by the number of LAGs that can be manually configured.

If a maximum of 256 LAGs can be configured, the value ranges from 1 to 64, and the default value is 64.

If a maximum of 512 LAGs can be configured, the value ranges from 1 to 32, and the default value is 32.

If a maximum of 1024 LAGs can be configured, the value ranges from 1 to 16, and the default value is 16.

hashType

Specifies a hash algorithm for the traffic forwarding table. The value is an enumerated type and case-sensitive.

IP: Data flows are differentiated based on IP addresses of packets to ensure that the packets of the same data flow are transmitted over the same member link.

MAC: Data flows are differentiated based on MAC addresses of packets to ensure that the packets of the same data flow are transmitted over the same member link.

Enhanced: enhanced template-based load balancing mode.

Desip: The system obtains the specified three bits from each of the destination IP address and the outbound TCP/UDP port number to perform the exclusive OR calculation, and then selects the outbound interface from the Eth-Trunk table according to the calculation result.

Desmac: The system obtains the specified three bits from each of the destination MAC address, VLAN ID, Ethernet type, and inbound interface information to perform the exclusive OR calculation, and then selects the outbound interface from the Eth-Trunk table according to the calculation result.

Sourceip: The system obtains the specified three bits from each of the source IP address and the inbound TCP/UDP port number to perform the exclusive OR calculation, and then selects the outbound interface from the Eth-Trunk table according to the calculation result.

Sourcemac: The system obtains the specified three bits from each of the source MAC address, VLAN ID, Ethernet type, and inbound interface information to perform the exclusive OR calculation, and then selects the outbound interface from the Eth-Trunk table according to the calculation result.

The default value is IP.

workMode

Specifies a trunk interface working mode. The value is an enumerated type and case-sensitive.

Manual: Manual load balancing mode is a basic link aggregation mode. In this mode, trunk establishment, member interface addition, and active interfaces are manually configured, without the participation of LACP.

Dynamic: In dynamic LACP mode, if an Eth-Trunk interface in dynamic LACP mode is configured only on one of two connected devices and the directly connected physical interfaces are both Up, LACP will set Eth-Trunk member interfaces to Indep, indicating the physical interfaces of the two devices are independent. The physical interfaces of the device where dynamic LACP is configured can send data to the other device.

Static: In static LACP mode, Eth-Trunk establishment and member interface addition are manually configured. Different from link aggregation in manual load balancing mode, active member interfaces are selected by sending LACPDUs in static LACP mode.

The default value is Manual.

  • Response example (XML format)
    <?xml version="1.0" encoding="UTF-8"?>  
    <ok/>

    Table 9-77 describes status codes in responses.

Table 9-77 Description of status codes in responses

Status Code

Description

200 OK

The operation succeeds.

400 Bad Request

The request cannot be implemented because the request is incorrect in syntax or the information attribute in the request is incorrect.

500 Internal Server Error

Internal errors in services cause a request failure or an unidentified request.

Translation
Download
Updated: 2019-04-03

Document ID: EDOC1100075372

Views: 10062

Downloads: 16

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