map

map - configure traffic map.

SYNOPSIS

map sub-command options

DESCRIPTION

The map command is used to set the direction of traffic flow between ports on same or different cards on same or different chassis. There are four types of mappings available - one2one, one2many, many2one and many2many.

The one2one mapping sets up one transmit and one receive port for traffic flow. The transmit/receive port pair that has been configured once cannot be used in a different port pair. That is, each port pair is mutually exclusive. The one2many mapping sets up one transmit port and multiple receive ports. Each group of transmit and its multiple receive ports is mutually exclusive with other groups. The many2one mapping sets up multiple transmit ports and one receive port. Each group of multiple transmit ports and its receive port is mutually exclusive with other groups. The many2many mapping sets up multiple transmit ports and multiple receive ports. Any port may transmit and receive to any other port in any group of ports.

STANDARD OPTIONS
type maptype

maptype may be one of:

one2one

one2many

many2one

many2many

COMMAND

The map command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.

map add txChassis txLm txPort rxChassis rxLm rxPort

Creates a map from Tx ports txPort on card txLm, chassis txChassis to Rx port rxPort on card rxLm, chassis rxChassis.

map cget option

Returns the current value of the configuration option given by option. Option may have any of the values accepted by the map command.

map config option value

Modify the configuration options of the map. If no option is specified, returns a list describing all of the available options (see STANDARD OPTIONS) for map.

map del txChassis txLm txPort rxChassis rxLm rxPort

Deletes a map from Tx ports txPort on card txLm, chassis txChassis to Rx port rxPort on card rxLm, chassis rxChassis.

map new -type type

Clears the current map of type one2one, one2many, many2one, or many2many.

map setDefault

Sets default values for all configuration options.

map show

Displays the current settings of the current map.

EXAMPLES

package require IxTclHal

set chassis 1

set fromCard 1

set toCard 2

map setDefault

map config -type one2many

map new -type one2many

map add $chassis $fromCard 1 $chassis $toCard 1

map add $chassis $fromCard 1 $chassis $toCard 2

map add $chassis $fromCard 2 $chassis $toCard 3

map add $chassis $fromCard 3 $chassis $toCard 4

map show

INTERNAL

COMMANDS

The following commands are internal interfaces, for use only by Ixia. Use of these commands may produced undesirable results and are not guaranteed to be backward compatible in future releases:

exists, getHelp, getType, getValidRange, getValidValues, getValidateProc

SEE ALSO

getAllPorts, getRxPorts, getTxPorts