---
title: LAG
slug: aidc/w1pH-lag
createdAt: 2025-12-29T10:28:23.122Z
---

Link-aggregations(LAG or PortChannel).

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                                            | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------------------------ | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/link-aggregations/&#x7B;name}                     | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/link-aggregations/&#x7B;name}/members/&#x7B;port} | Y       | Y        | N         | N       | Y          |
| /rest/v1/rpc/show-link-aggregation-summary                         | N       | Y        | N         | N       | N          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Show-link-aggregation-summary</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-link-aggregation-summary
```

**response:**

```json
{
    "link-aggregation": [
        {
            "index": 200,
            "name": "Lag200",
            "protocol": "lacp",
            "runner-active": "active",
            "state": "down",
            "description": "N/A",
            "member": [
                {
                    "name": "Ethernet53:2",
                    "status": "deselected",
                    "synced": "synced"
                }
            ]
        }
    ]
}
```

### <font color="#1d50a2">Get all PortChannels</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/link-aggregations
```

**response:**

```json
{
    "result": [
        {
            "name": "Lag200",
            "mode": "lacp",
            "lacp": {
                "lacp-key": "auto"
            },
            "members": [
                {
                    "port": "Ethernet53:2"
                }
            ]
        }
    ]
}
```

### <font color="#1d50a2">Create a PortChannel with members</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/link-aggregations/
{
    "name": "Lag4",
    "mode": "lacp",
    "lacp": {
        "lacp-key": "auto",
        "min-links": 1,
        "system-priority": 10000,
        "fallback": "true",
        "fast-rate": "true",
        "system-id": "12:34:56:ab:cd:ef"
    },
    "members": [
        {
            "port": "Ethernet1",
        },
        {
            "port": "Ethernet2",
            "lacp-port-priority": 65535
        }
    ]
}
```

### <font color="#1d50a2">Create a member for PortChannel</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/link-aggregations/Lag8888/members
{
    "port": "Ethernet3",
    "lacp-port-priority": 65535
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">LAGs</font>

**Tree Diagrams**

```plaintext
  +--rw portchannels
     +--rw portchannel* [name]
        +--rw name
        +--rw mode?
        +--rw commit?
        +--rw lacp
        |  +--rw lacp-key?
        |  +--rw min-links?
        |  +--rw system-priority?
        |  +--rw fallback?
        |  +--rw fast-rate?
        |  +--rw graceful-down?
        |  +--rw system-id?
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**       | **Description**                                                                                                                                                                                                                                       |
| ----------------- | ------------ | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| link-aggregations | M            |                      | Path-only node, has no configurable value.                                                                                                                                                                                                            |
| name              | M            | Lag1..9999           | (sub-property of portchannels)<br />The name of the PortChannel and PortChannel sub interface.                                                                                                                                                        |
| mode              | O            | "lacp"<br />"static" | (sub-property of portchannels)<br />Choose port-channel mode: lacp for running LACP protocol, static for static load banlancing among members<br />Default value: "lacp"                                                                              |
| lacp              | CM           |                      | (sub-property of portchannels)<br />Path-only node, has no configurable value.<br />Only applicable when mode = "lacp".<br />LACP Protocol configuration of portchannels                                                                              |
| lacp-key          | O            | "auto"<br />0..65535 | (sub-property of lacp)<br />lacp key should be either auto or a integer in the range of 0 to 65535. When lacp\_key is set to "auto" it would be set to be the number on the end of the PortChannel name with a prefix of 1<br />Default value: "auto" |
| min-links         | O            | 1..1024              | (sub-property of lacp)<br />Minimum count of UP ports for the LAG to enter UP state.                                                                                                                                                                  |
| system-priority   | O            | 0..65535             | (sub-property of lacp)<br />The LACP system priority identifies the master switch ot the LAG. The system with the lower system priority is preferred.<br />Default value: 65535                                                                       |
| fallback          | O            | "true"<br />"false"  | (sub-property of lacp)<br />The fallback mode brings up one of the LACP member ports to "UP" state before an LACP PDU is received by the LAG.<br />Default value: "false"                                                                             |
| fast-rate         | O            | "true"<br />"false"  | (sub-property of lacp)<br />Fast-rate allows the LACP peer to send LACP PDUs at a rate of one per second after synchronization. The default rate is one per 30 seconds.<br />Default value: "false"                                                   |
| graceful-down     | O            | "true"<br />"false"  | (sub-property of lacp)<br />Graceful shutdown LACP.                                                                                                                                                                                                   |
| system-id         | O            | A\:B:C\:D:E\:F       | (sub-property of lacp)<br />Change LACP system id. Default to the system MAC                                                                                                                                                                          |

### <font color="#1d50a2"> members</font>

**Tree Diagrams**

```plaintext
  +--rw link-aggregations
     +--rw link-aggregation* [name]
        +--rw name
        +--rw members
           +--rw member* [port]
              +--rw port
              +--rw lacp-port-priority?
              +--rw lacp-key?
              +--rw lacp-port-id?
```

**Table of Properties**

| **Name**           | **Required** | **Type/Range** | **Description**                                                                                                                                                                                                                                                                                                                 |
| ------------------ | ------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| link-aggregations  | M            |                | Path-only node, has no configurable value.                                                                                                                                                                                                                                                                                      |
| name               | M            | Lag1..9999     | (sub-property of portchannels)<br />The name of the PortChannel and PortChannel sub interface.                                                                                                                                                                                                                                  |
| members            | M            |                | (sub-property of portchannels)<br />Path-only node, has no configurable value.                                                                                                                                                                                                                                                  |
| port               | M            | Ethernet name  | (sub-property of members)<br />                                                                                                                                                                                                                                                                                                 |
| lacp-port-priority | O            | 1..65535       | (sub-property of members)<br />The port priority determines which ports should be put in standby mode when there is a hardware limitation that prevents all compatible ports from aggregating. Ports with lower port-priority are preferred.                                                                                    |
| lacp-key           | O            | 0..65535       | (sub-property of members)<br />The administrative key defines the ability of a port to aggregate with other ports. A port's ability to aggregate with other ports is determined by these factors: Port physical characteristics, such as the data rate and the duplex capability Configuration restrictions that you establish. |
| lacp-port-id       | O            | 1..65535       | (sub-property of members)<br />lacp port identifier. Default LACP uses the port priority with the port number to form the port identifier.                                                                                                                                                                                      |

### <font color="#1d50a2">Show link-aggregation summary</font>

**Tree Diagrams**

```plaintext
    +---x show-link-aggregation-summary
       +--ro output
          +--ro link-aggregation* [name]
             +--ro index?
             +--ro name
             +--ro protocol?
             +--ro runner-active?
             +--ro state?
             +--ro member* [name]
             |  +--ro name
             |  +--ro status?
             |  +--ro synced?
             +--ro description?
```

**Table of Properties**

| **Name**                      | **Required** | **Type/Range**                                     | **Description**                                                                          |
| ----------------------------- | ------------ | -------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| show-link-aggregation-summary | M            |                                                    | Path-only node, has no configurable value.<br />                                         |
| link-aggregation              | RO           |                                                    | (sub-property of output)<br />Path-only node, has no configurable value.<br />           |
| index                         | RO           | 0..65535                                           | (sub-property of link-aggregation)<br />                                                 |
| name                          | RO           | string                                             | (sub-property of link-aggregation)<br />                                                 |
| protocol                      | RO           | "lacp"<br />"static"<br />"not-available"          | (sub-property of link-aggregation)<br />                                                 |
| runner-active                 | RO           | "active"<br />"inactive"<br />"not-available"      | (sub-property of link-aggregation)<br />                                                 |
| state                         | RO           | "up"<br />"down"<br />"not-available"              | (sub-property of link-aggregation)<br />                                                 |
| member                        | RO           |                                                    | (sub-property of link-aggregation)<br />Path-only node, has no configurable value.<br /> |
| name                          | RO           | string                                             | (sub-property of member)<br />                                                           |
| status                        | RO           | "selected"<br />"deselected"<br />"up"<br />"down" | (sub-property of member)<br />                                                           |
| synced                        | RO           | "synced"<br />"not-synced"<br />"not-available"    | (sub-property of member)<br />                                                           |
| description                   | RO           | string                                             | (sub-property of link-aggregation)                                                       |

