card
card - get version and type of card.
SYNOPSIS
card sub-command options
DESCRIPTION
This command allows the user to view version and type information for the card.
STANDARD OPTIONS
cardFeatures
Read-only. The card feature command options include:
Option |
---|
cardFeatureFrequencyOffset |
cardFeature1GEAggregate |
cardFeature10GEAggregate |
cardFeatureClockMode |
cardFeaturePortClusters |
cardOperationMode
Read-only. Use the sub-command writeOperationMode to set this mode (ASM XMV12X card only). Options include:
Option |
Value |
Usage |
---|---|---|
cardOperationModeNormal |
|
ASM XMV12X card, normal mode |
cardOperationMode1geAggregated |
|
ASM XMV12X card, 1GbE aggregated mode |
cardOperationMode10geAggregated |
|
ASM XMV12X card, 10GbE aggregated mode |
writeOperationMode |
Mazuma 10G, writeOperationMode self mode chasID cardID argument 3 |
clockRxRisingEdge
For 10/100 RMII cards, received data is to be clocked on the rising edge.
(default = 1)
clockSelect
For LSM10GXM8 cards, the currently selected clock. Options include:
Option |
Value |
---|---|
cardClockInternal |
0 |
cardClockExternal |
1 |
Other options include::
Option |
---|
portGroup1Speed |
portGroup2Speed |
portGroup3Speed |
portGroup4Speed |
clockTxRisingEdge
For 10/100 RMII cards, xmit data is to be clocked on the rising edge. (default=1)
fpgaVersion
Read-only. The current version of central FPGA image file on this card.
hwVersion
Read-only. The current hardware version of this card.
portCount
Read-only. Number of ports on this card; if no card present, returns 0.
serialNumber
Read-only. For load modules which possess a serial number, this is the serial number associated with the load module.
txFrequencyDeviation
For 10GE LSM XM (NGY) and LM 10/1000/1000 TXS4 cards: a frequency deviation to be applied to the transmit clock. Values are in parts per million and vary between -102 and 102. (default = 0)
type
Read-only. The type of the card selected. The following options are used, along with the name of the card found when using IxExplorer. The Ixia part number associated with each card can be found in the Ixia Hardware Guide.
typeName
Read-only. The name corresponding to the card type. One of the symbolic values shown under type.
DEPRECATED OPTIONS
clockType
The following options have been deprecated:
Option |
Value |
Usage |
---|---|---|
cardBertUnframedClockSonet |
0 |
(default) 155.52 Mbps (OC-3), 622.08 Mbps (OC-12) and 2.488 Gbps (OC-48) data rates |
cardBertUnframedClockSonetWithFEC |
1 |
166.63 Mbps (OC-3 FEC), 666.51 Mbps (OC-12 FEC) and 2.67 Gbps (OC-48 FEC) data rates |
cardBertUnframedClockFiberChannel |
2 |
1.062 Gbps (Fibre Channel) and 2.124 Gbps (2x Fibre Channel) data rates |
cardBertUnframedClockGigE |
3 |
1.25Gbps (Gigabit Ethernet) data rates |
cardBertUnframedClockExternal |
4 |
Clock is externally supplied. |
type
The following card type options have been deprecated:
Option |
Value |
Usage |
---|---|---|
cardUSB |
19 |
4 port 10 Mbps/USB card |
txClockDeviationLan
For 10GE LSM XM8 cards. LAN transmit clock deviation in units of ppm, referred to as Frequency Offset in IxHal.
txClockDeviationWan
For 10GE LSM XM8 cards. WAN transmit clock deviation in units of ppm.
COMMANDS
The card command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.
card config option value
Modify the configuration options of the card. If no option is specified, returns a list describing all of the available options (see STANDARD OPTIONS) for card.
card cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the card command.
card export fileName chasID cardID
Exports the current configuration of the card at slot cardID, chassis chasID into the file named fileName; fileName may include a full or relative path. If no extension is used in fileName, a ".crd" is added to the name. The file produced by this command may be used by the import sub-command. Specific errors are:
- No connection to a chassis
- Invalid card
card get chasID cardID
Gets the current configuration of the card at slot cardID, chassis chasID. Call this command before calling card cget option value to get the value of the configuration option. If the card does not exist, an error is returned.
Note: Card ID starts from 1 and ends with the last card number that is present (if we have an XM12 with 12 slots and only card 3 and 4 are present, their IDs will be 3 and 4 respectively).
card getPortClusterCount chasID cardID
Gets the port cluster count.
card getFrontPanelMasterPort chasID cardID portClusterIndex
Gets the front panel master port.
card getCpuPortList chasID cardID portClusterIndex
Gets the CPU Port list.
card getFrontPanelPortList chasID cardID portClusterIndex
Gets the front panel port list.
card getPortClusterIndex chasID cardID portID
Gets the index of the port cluster.
card getAssociatedFrontPanelPorts chasID cardID cpuPortID
Gets the associated front panel ports.
card import fileName chasID cardID
Imports a saved card configuration found in the file fileName into the current configuration of the card at slot cardID, chassis chasID. fileName may include a full or relative path. If no extension is used in fileName, a ".crd" is added to the name. The file used by this command must have been produced by the export sub-command.
Note: This command should be followed by ixWritePortsToHardware to write the stream and protocol configurations to hardware, and card write to write the card parameters to hardware.
Specific errors are:
- No connection to a chassis
- Invalid card
- The card is owned by another user
- fileName does not exist
card isActiveFeature chasID cardID feature
Determines whether a specific feature is active for the card at cardID, chassis chasID and that the card is properly configured/enabled to use that feature. A value of true (1) is returned if the feature is enabled and false (0) if the feature is not enabled. Feature may be one of the values from the isValidFeatures list.
card isCpuPort chasID cardID portID
Determines whether Port CPU is active.
card isFrontPanelMasterPort chasID cardID portID
Determines whether front panel of master port is active.
card isValidFeature chasID cardID feature
Determines whether a specific feature is valid for the card at cardID, chassis chasID with the card in its current mode. A value of true (1) is returned if the feature is valid and false (0) if the feature is invalid or the port is invalid. Feature may be one of the following values:
Option |
Value |
Usage |
---|---|---|
cardFeatureFrequencyOffset |
131 |
Frequency offset |
cardFeature1GEAggregate |
280 |
ASM XMV12X card, 1GbE aggregated mode |
cardFeature10GEAggregate |
281 |
ASM XMV12X card, 10GbE aggregated mode |
cardFeatureClockMode |
313 |
Clock mode |
cardFeaturePortClusters |
432 |
Port clusters feature |
card set chasID cardID
Sets the current configuration of the card at slot cardID, chassis chasID by reading the configuration option values set by the card config option value command. Specific errors are:
- No connection to a chassis
- Invalid parameters
- Network problem between the client and chassis
card set Default
Sets to IxTclHal default values for all configuration options.
card setFactoryDefaults chasID cardID
Sets factory default information. The specific card write sends only card specific information. Set "card write chasID cardID" after setting card setFactoryDefaults to get specific information.
card write chasID cardID
Writes the card properties of the card at slot cardID, chassis chasID by reading the configuration option values set by the card config option value command. No stream or port properties are written.
card writeOperationMode mode chasID cardID
Writes the mode for the card. See the option cardOperationMode. Note: This also writes the port configuration for all ports on the card (ASM XMV12X card only).
card addVMPort chasID cardID portID testNic promiscuous_mode testMac linkMTU lineSpeed
Example: card addVMPort 1 1 3 eth3 1 testMac linkMTU lineSpeed
Adds IxVM port on a virtual appliance.
Options |
Values |
---|---|
kPortOK |
0 |
kPortIdExists |
10 |
kPortIdOutOfRange |
11 |
kPortOverlappingNIC |
12 |
kPortIdUnavailable |
13 |
kPortBuildTimeout |
14 |
kPortInvalidOnSingleNic |
15 |
kPortRemoveTimeout |
17 |
The parameters for the commands are:
Option |
Value |
Usage |
---|---|---|
keepAliveTimeout |
any value in seconds (>= 3) |
keepAliveTimeout value in seconds (>=3), indicating the Keepalive timeout between the Virtual Chassis and the Virtual Load Module. |
testNic |
|
The existing nic name of a virtual machine, used to generate traffic (port), Example: eth1. |
promiscuous_mode |
0/1 |
Enables promiscuous mode on port (Promiscuous mode must be supported and enabled in hypervisor also, for this option to work). |
testMac |
|
The MAC address of the port. This must match the MAC address of the interface with the name provided in testNic parram, can be added as 00:00:00:00:00:00, and is automatically taken from interface at add time. |
linkMTU |
default = 1500 |
A valid Ethernet MTU. |
lineSpeed |
valid values: 100Mbps and 1000Mbps (new versions of IxOS limits the speed to this 2 values, using IxN and IxL user can also set the speed up to 50000 Mbps) |
The virtual line speed at which the port will be capped, in software. Default = 1000. If an invalid value is entered speed will be set to 1000. |
card setVMPortParameter chassisId cardId portId paramId
Sets the VM port parameters.
Port parameters IDs:
portTestNic |
0 |
portProModetestNic |
1 |
portMac | 2, //read only, changeable only with setVMPortParameters and testNic set to "" |
portLinkMTU | 3 |
portLineSpeed | 4 |
The return values for the command are:
Options |
Values |
---|---|
kPortOK |
0 |
kPortOverlappingNIC |
12 |
kPortBuildTimeout |
14 |
card setVMPortParameters chassisId cardId portId testNic promiscuousMode optionalMac linkMTU lineSpeed
Sets the VM port parameters. To use this function all parameters must be set. This function is faster than setting parameters one by one. If a parameter is not set, a default one is used. MAC address is always optional. To change test interface NIC based on MAC, setVMPortParameters function must be used and testNic set to "".
Port parameter IDs:
portTestNic |
0 |
portProModetestNic |
1 |
portMac | 2, //read only, changeable only with setVMPortParameters and testNic set to "" |
portLinkMTU | 3 |
portLineSpeed | 4 |
Options |
Values |
---|---|
kPortOK |
0 |
kPortOverlappingNIC |
12 |
kPortBuildTimeout |
14 |
card getVMPortParameter chassisId cardId portId paramId
Gets the current configuration of the VM port.
Port parameter IDs:
portTestNic |
0 |
portProMode |
1 |
portMac | 2, //read only |
portLinkMTU | 3 |
portLineSpeed | 4 |
portVMStatus | 5, //read only |
Returns the current value of the configuration option given by paramId.
For the vmPortParameter portVMStatus (option No 5):
Example:
card getVMPortParameter chassisId cardId portId 5 returns the following values:
State |
Values |
Explanation |
---|---|---|
Uninitialized |
1 |
Initial port state, if API returns this value, it means that the port is not fully initialized; retry later. |
Connected and Link Up |
2 |
Port is connected to the chassis. |
Port Removed |
3 |
Set when remove port action failed |
Invalid NIC |
4 |
Set when there is no such NIC on the Virtual Load Module. |
Port Unknown Error |
5 |
Generic error,something failed on add, remove, update port. |
Disconnected |
17 |
Port is disconnected from the chassis. |
Connected but No License |
18 |
Connected, but no licenses are available (check the license server). |
IxOS Version Mismatch |
20 |
IxOS Version mismatch between the Virtual Chassis and the Virtual Load Modules. |
card createPartition chasID cardID phyPortList cpuPortList
Creates partition in port list CPU.
card queryPartition chasID cardID partitionID
Sends query for partition.
card deletePartition chasID cardID partitionID
Deletes partition in port list CPU.
card removeVMPort chasID cardID portID
Removes a Virtual Port from a Virtual Card that is attached to a Virtual Chassis.
card resetHardware chasID cardID
With this command, the chassis resets all the hardware, reboots port CPU, tests the local processor test, and rewrites the streams. This command does not modify existing port/stream configuration.
card getMaxResourceGroups chasID cardID
With this command, gets the maximum number of supported resource groups.
card addResourceGroup chasID cardID
Adds resource groups.
card createResourceGroups chasID cardID
Creates resource groups.
card deleteResourceGroups chasID cardID
Deletes resource groups.
card getConfiguredResourceGroupList chasID cardID
Gets and configures resource group list.
card setConfiguredResourceGroupList chasID cardID
Sets and configures resource group list.
card forceHotswap chassisID cardID
Deliberately forces hotswap of the card.
Example:
package require IxTclHal
ixConnectToChassis $ChassisId
TclScripts) 2 % card forceHotswap 1 2
Switch Mode
The following commands enable the Xcellon-Multis card to switch mode:
For CXP Module:
card get 1 2
resourceGroupEx get 1 2 1( it can be 1 2 5, 1 2 6, and 1 2 7)
resourceGroupEx cget -activePortList #it displays current mode
resourceGroupEx config -activePortList {0 2 1} #for 100G mode
resourceGroupEx config -activePortList {{0 2 5}{0 2 6}{0 2 7}} #for 40/10G mode
resourceGroupEx config -mode 8 #for 40G mode
resourceGroupEx config -mode 10 #for 10G mode
resourceGroupEx set 1 2 1( it can be 1 2 5, 1 2 6, and 1 2 7)
resourceGroupEx write 1 2 1 ( it will send message to and execute mode switch )
For QSFP Module:
card get 1 2
resourceGroupEx get 1 2 1
resourceGroupEx cget -activePortList #it displays current mode
resourceGroupEx config -activePortList {{0 2 1}{0 2 2}{0 2 3}} #for 40/10G mode
resourceGroupEx config -mode 8 #for 40G mode
resourceGroupEx config -mode 10 #for 10G mode
resourceGroupEx set 1 2 1
resourceGroupEx write 1 2 1 ( it will send message to and execute mode switch )
For QSFP28 2x25GE mode:
card get 1 2
resourceGroupEx get 1 2 9
resourceGroupEx config -mode 20
resourceGroupEx set 1 2 9
resourceGroupEx write 1 2 9
For QSFP28 1x50G mode:
card get 1 2
resourceGroupEx get 1 2 1
resourceGroupEx config -mode 19
resourceGroupEx set 1 2 1
resourceGroupEx write 1 2 1
For Novus, Novus-R and Novus-M 10G/25G Module:
resourceGroupEx get 1 1 9
resourceGroupEx config -activePortList [list {1 1 9} {1 1 10} {1 1 11} {1 1 12}]
resourceGroupEx config -mode 25000 #For 25G
OR
resourceGroupEx config -mode 10000 #For 10G
resourceGroupEx set 1 1 9
resourceGroupEx write 1 1 9
For Novus and Novus-R 50GE module
resourceGroupEx get 1 1 41
resourceGroupEx config -activePortList [list {1 1 41} {1 1 42}]
resourceGroupEx config -mode 50000
resourceGroupEx set 1 1 41
resourceGroupEx write 1 1 41
For Novus, Novus-R and Novus-M 40G/100G Module:
resourceGroupEx get 1 1 1
resourceGroupEx config -activePortList [list {1 1 1}]
resourceGroupEx config -mode 100000 #For 100G
OR
resourceGroupEx config -mode 40000 #For 40G
resourceGroupEx set 1 1 1
resourceGroupEx write 1 1 1
For QSFP-DD, QSFP-DD-R, and UPG-QSFP-DD-R modules:
resourceGroupEx get 1 1 1
resourceGroupEx config -activePortList "{1 1 1}"
resourceGroupEx config -mode 400000 #For 400G
OR
resourceGroupEx config -mode 200000 #For 200G
OR
resourceGroupEx config -mode 100000 #For 100G
OR
resourceGroupEx config -mode 50000 #For 50G
resourceGroupEx config -attributes "{bert}" #For BERT mode
OR
resourceGroupEx config -attributes "{dce}" #For DCM mode
resourceGroupEx set 1 1 1
resourceGroupEx write 1 1 1
For CFP8, CFP8-R, and UPG-CFP8-R modules:
resourceGroupEx get 1 1 1
resourceGroupEx config -activePortList "{1 1 1}"
resourceGroupEx config -mode 400000
resourceGroupEx config -attributes "{bert}"
resourceGroupEx set 1 1 1
resourceGroupEx write 1 1 1
For all variants of T400 QDD and T400 OSFP modules:
resourceGroupEx get 1 1 1
resourceGroupEx config -mode 400000 #For 400G
OR
resourceGroupEx config -mode 200000 #For 200G
OR
resourceGroupEx config -mode 400000 #For 100G
OR
resourceGroupEx config -mode 400000 #For 50G
OR
resourceGroupEx config -mode 400000
resourceGroupEx config -attributes "{bert}" #For BERT mode
resourceGroupEx set 1 1 1
resourceGroupEx write 1 1 1
Note: BERT mode is supported only for T400 QDD and T400 OSFP 400G speed modes.
For NOVUS25/10GE8SFP28: 10G/25G:
resourceGroupEx get 1 2 1
resourceGroupEx config -activePortList [list {1 2 1}]
resourceGroupEx config -mode 25000 #For 25G
resourceGroupEx set 1 2 1
resourceGroupEx write 1 2 1
OR
resourceGroupEx config -mode 10000 #For 10G
resourceGroupEx set 1 2 1
resourceGroupEx write 1 2 1
Please refer to below example:
(TclScripts8.6) 10 % resourceGroupEx get 1 2 7
0
(TclScripts8.6) 14 % resourceGroupEx config -activePortList [list {1 2 7}]
(TclScripts8.6) 15 % resourceGroupEx config -mode 10000
(TclScripts8.6) 17 % resourceGroupEx set 1 2 7
0
(TclScripts8.6) 18 % resourceGroupEx write 1 2 7
0
Capture Playback
Capture Playback is a resource group mode on the Xcellon Multis load module that allows you to load a packet capture file into port hardware. Once the capture file is successfully loaded, you will be able to transmit all of the loaded packets.
Capture Playback supports the .pcap, .pcapng, and .enc capture file formats.
A sample workflow is provided as follows:
# setup some basic variables
set chassisName "user-chassis"
set chassID 1
set cardID 1
set mode40G_CPB 12
set mode100G_CPB 11
set continuousPackets 0
set burstPackets 1
set loopPackets 5
set capFile "sample.pcap"
# connect to the chassis
ixConnectToChassis $chassisName
# switch ports 1 and 2 into 100 Capture Playback mode
# NOTE: the mode switch process can take a substantial
# amount of time so prepare to wait at least several
# minutes for it to complete.
resourceGroupEx get $chassID $cardID 1
resourceGroupEx config -mode $mode100G_CPB
resourceGroupEx set $chassID $cardID 1
resourceGroupEx write $chassID $cardID 1
resourceGroupEx get $chassID $cardID 2
resourceGroupEx config -mode $mode100G_CPB
resourceGroupEx set $chassID $cardID 2
resourceGroupEx write $chassID $cardID 2
# create a port group for ports 1 and 2
portGroup destroy 1
portGroup create 1
portGroup add 1 $chassID $cardID 1
portGroup add 1 $chassID $cardID 2
portGroup write 1
# configure capture playback for each port and set the
# transmit mode to burst mode.
# NOTE: that this is the configuration step for capture
# playback and it must come BEFORE the loading of the
# packet file.
capturePlayback get $chassID $cardID 1
capturePlayback config -framesPerSec 30
capturePlayback config -framesToBurst 9
capturePlayback config -transmitType $burstPackets
capturePlayback config -captureFileChassis $capFile
capturePlayback set $chassID $cardID 1
capturePlayback write $chassID $cardID 1
capturePlayback get $chassID $cardID 2
capturePlayback config -framesPerSec 30
capturePlayback config -framesToBurst 9
capturePlayback config -transmitType $burstPackets
capturePlayback config -captureFileChassis $capFile
capturePlayback set $chassID $cardID 2
capturePlayback write $chassID $cardID 2
# load the packet file for each port
capturePlayback load $chassID $cardID 1
capturePlayback load $chassID $cardID 2
# the port group that was created prior to configuring
# capture playback can now be used to send a burst
# of packets.
portGroup setCommand 1 $::sendNextBurstCP
# individual ports can be made to send a busrt of packets
capturePlayback sendNextBurst $chassID $cardID 1
capturePlayback sendNextBurst $chassID $cardID 2
DEPRECATED
COMMANDS
card getInterface chasID cardID
Gets the interface type of the card.
EXAMPLES
package require IxTclHal
set host localhost
set username user
# Check if we're running on UNIX - connect to the TCL Server
# which must be running on the chassis
if [isUNIX] {
if [ixConnectToTclServer $host] {
ixPuts "Could not connect to $host"
return 1
}
}
# Now connect to the chassis
if [ixConnectToChassis $host] {
ixPuts $::ixErrorInfo
return 1
}
# Get the chassis ID to use in port lists
set chas [ixGetChassisID $host]
# Login before taking ownership
if [ixLogin $username] {
ixPuts $::ixErrorInfo
return 1
}
# Get the chassis' number of cards
chassis getFromID $chas
set ncards [chassis cget -maxCardCount]
ixPuts "Chassis $chas, $ncards cards"
for {set i 1} {$i <= $ncards} {incr i} {
# Check for missing card
if {[card get $chas $i] != 0} {
continue
}
set portList [list [list $chas $i 1]]
# Take ownership of the ports we'll use
if [ixTakeOwnership $portList] {
ixPuts $::ixErrorInfo
return 1
}
# Get all of the card's characteristics
set fpgaVersion [card cget -fpgaVersion]
set hwVersion [card cget -hwVersion]
set portCount [card cget -portCount]
set type [card cget -type]
set typeName [card cget -typeName]
# And list them
ixPuts "Card $i: $typeName ($type), $portCount ports, \
fpga $fpgaVersion, hwVersion $hwVersion"
# If the card is a 10/100 RMII, play with its settable parameters
if {$type == $::card10100RMii} {
card config -clockRxRisingEdge 0
card config -clockTxRisingEdge 1
if [card set $chas $i] {
ixPuts "Could not card set $chas $i"
}
ixWriteConfigToHardware portList
}
# Just for fun, we'll export the data associated with the first card
# and read it to any other cards of the same type
if {$i == 1} {
if {[card export cardfile $chas $i] != 0} {
ixPuts "Could not export"
} else {
set savedType $type
}
} elseif {$type == $savedType} {
if {[card import cardfile $chas $i] == 1} {
ixPuts "Could not import"
}
}
# Let go of the ports that we reserved
ixClearOwnership $portList
}
# Disconnect from the chassis we're using
ixDisconnectFromChassis $host
# If we're running on UNIX, disconnect from the TCL Server
if [isUNIX] {
ixDisconnectTclServer $host
}
# Everest 10/40G Combo (assume chassis = 1; card = 6):
# Example to configure 2 resource groups in 40G mode and
# 1 resource group in 10G aggregation mode
# Check if the card supports resource group - kFeatureResourceGroup
set validRG [card isValidFeature 1 6 454]
# Check if the card is Everest 10/40G Combo - kFeatureEverest40GCombo.
set validEverestCombo [card isValidFeature 1 6 435]
# Get the max number of supported resource groups
set maxRG [card getMaxResourceGroups 1 6]
# Check if the card is Everest 10/40G Combo. Please note we have
# 5 ports in resource group for 40G combo, while we have 4 ports in
# resource group for Everest 10G
card get 1 6
set numPorts [card cget -portCount] # 20 for combo; 16 for Everest 10G
set portsPerRG [expr $numPorts / $maxRG]
# step1: Add ports in resource group
# Set {1, 2, 3, 4, 17} and {9, 10, 11, 12, 19} to 40G mode
# Set {5, 6, 7, 8, 18} to 10G aggregation mode
set rgPorts1 [list [list 1] [list 2] [list 3] [list 4] [list 17]]
set rgPorts2 [list [list 5] [list 6] [list 7] [list 8] [list 18]]
set rgPorts3 [list [list 9] [list 10] [list 11] [list 12] [list 19]]
card addResourceGroup 17 40000 $rgPorts1 # active port 17, speed 40000
card addResourceGroup 19 40000 $rgPorts3 # active port 19, speed 40000
card addResourceGroup 5 10000 $rgPorts2 # active port 5, speed 10000
# step2: Create Resource group with the configured groups
# This call will push down the configuration in the server
# This is a blocking call and will fail if any of the groups are
# configured incorrectly or all the ports are not owned etc.
card createResourceGroups 1 6
# Get the configured Resource Groups list
set configuredRGList [card getConfiguredResourceGroupList 1 6]
return value: {17 40000 {1 2 3 4 17}} {5 10000 {5 6 7 8 18}} {19 40000 {9 10 11 12 19}}
# Set the configured Resource Groups list
# This api can be directly used to set one or more resource
# groups in a card.
Note: setConfiguredResourceGroupList can be directly fed the output
# from getConfiguredResourceGroupList
set configuredRGList [card getConfiguredResourceGroupList 1 6]
card setConfiguredResourceGroupList 1 6 $configuredRGList
card setConfiguredResourceGroupList $chassis $card {{17 40000 {1 2 3 4 17}} {18 40000 {5 6 7 8 18}} {19 40000 {9 10 11 12 19}} {20 40000 {13 14 15 16 20}}}
# Delete Resource Groups. This will put the ports in the RG in
# normal 10G mode.
set dList [list [list 17] [list 19] [list 9]]
card deleteResourceGroups 1 6 $dList
***Note: For Everest 10G only speed 10000 is supported and resource group contains 4 ports. All other steps are exactly same. Please look at the example below:
# step1: Add ports in resource group
# Set {1, 2, 3, 4} and {9, 10, 11, 12} to 10G aggregation mode
set rgPorts1 [list [list 1] [list 2] [list 3] [list 4]]
set rgPorts3 [list [list 9] [list 10] [list 11] [list 12]]
card addResourceGroup 1 10000 $rgPorts1 # active port 1, speed 10000
card addResourceGroup 5 10000 $rgPorts3 # active port 5, speed 10000