Configure Port on a Port Channel

You can provide a port number for each XCO port channel configured on the SLX port channel.

About this task

Follow this procedure to configure a port when you create or update a port channel..

Procedure

  1. To configure a port when you create a port channel, run the following command:
    efa tenant po create --name <po-name> --tenant <tenant-name> --description <podescription> --speed <100Mbps|1Gbps|10Gbps|25Gbps|40Gbps|100Gbps> --negotiation <active|passive|static> --port <list-of-po-members> --min-link-count <min-link-count> --number <po-number> --lacp-timeout <short|long>
  2. To configure lacp-timeout when you update a port channel, run the following command:
    efa tenant po update --name <po-name> --tenant <tenant-name> --operation <port-add|port-delete|lacp-timeout|description|min-linkcount> --port <list-of-po-members> --lacp-timeout string <short|long> --minlink-count <min-link-count> --description <po-description>

Example

The following is an example configuration of a port channel:
efa tenant po create --name ten1po1 --tenant ten1 --port 10.20.246.5[0/1],10.20.246.6[0/1] --speed 10Gbps --negotiation active
PortChannel created successfully.
--- Time Elapsed: 1.964684168s ---


efa tenant po show --name ten1po1 --tenant ten1 --detaill
===============================================================================
Name            : ten1po1
Tenant          : ten1
ID              : 7
Description     : EFA Port-channel ten1po1
Speed           : 10Gbps
MTU             :
Negotiation     : active
Min Link Count  : 1
Lacp Timeout    : long
Ports           : 10.20.246.6[0/1]
                : 10.20.246.5[0/1]
State           : po-created
Dev State       : provisioned
App State       : cfg-in-sync

==============================================================================

--- Time Elapsed: 56.120925ms ---

efa tenant po update --name ten1po1 --tenant ten1 --operation port-add --port 10.20.246.5[0/2],10.20.246.6[0/2]

PortChannel: ten1po1 updated successfully.

--- Time Elapsed: 3.201643775s ---

efa tenant po show --name ten1po1 --tenant ten1 --detail
==============================================================================
Name            : ten1po1
Tenant          : ten1
ID              : 7
Description     : EFA Port-channel ten1po1
Speed           : 10Gbps
MTU             :
Negotiation     : active
Min Link Count  : 1
Lacp Timeout    : long
Ports           : 10.20.246.6[0/1-2]
                : 10.20.246.5[0/1-2]
State           : po-created
Dev State       : provisioned
App State       : cfg-in-sync

===============================================================================

--- Time Elapsed: 64.672251ms ---


efa tenant po update --name ten1po1 --tenant ten1 --operation port-delete --port 10.20.246.5[0/1],10.20.246.6[0/1]

PortChannel: ten1po1 updated successfully.

--- Time Elapsed: 1.71277107s ---

efa tenant po show --name ten1po1 --tenant ten1 --detaill
===============================================================================
Name            : ten1po1
Tenant          : ten1
ID              : 7
Description     : EFA Port-channel ten1po1
Speed           : 10Gbps
MTU             :
Negotiation     : active
Min Link Count  : 1
Lacp Timeout    : long
Ports           : 10.20.246.6[0/2]
                : 10.20.246.5[0/2]
State           : po-created
Dev State       : provisioned
App State       : cfg-in-sync

================================================================================

--- Time Elapsed: 64.928169ms ---

The following is an example configuration of a port channel on SLX device:

After create ten1po1
SLX# sh run int po
interface Port-channel 1
 description EFA Port-channel ten1po1
 no shutdown
!

SLX# sh run int eth 0/1-2
interface Ethernet 0/1
 description Port-channel ten1po1 Member interface
 channel-group 1 mode active type standard
 lacp timeout long
 no shutdown
!
interface Ethernet 0/2
 no shutdown
!
After update port-add operation 0/2
SLX# sh run int po
interface Port-channel 1
 description EFA Port-channel ten1po1
 no shutdown
!

SLX# sh run int eth 0/1-2
interface Ethernet 0/1
 description Port-channel ten1po1 Member interface
 channel-group 1 mode active type standard
 lacp timeout long
 no shutdown
!
interface Ethernet 0/2
 description Port-channel ten1po1 Member interface
 channel-group 1 mode active type standard
 lacp timeout long
 no shutdown
!