ixCreateSortedPortList

ixCreateSortedPortList - creates a port list for a range of ports, excluding specified ports

SYNOPSIS

ixCreateSortedPortList portFrom portTo excludeList

DESCRIPTION

The ixCreateSortedPortList command creates a sorted list of ports based on the range of ports passed.

ARGUMENTS
portFrom

(By value) The first port number. For example, {1 1 1}.

portTo

(By value) The last port number. For example, {1 5 4}.

excludeList

(By value) A list of lists containing individual ports to be excluded from the list.

For example, {{1 3 1} {1 3 2}}

EXAMPLES

package require IxTclHal

set host galaxy

# 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

}

set from {1 1 1}

set to {1 2 1}

set ex {{1 1 4}}

set retList [ixCreateSortedPortList $from $to $ex]

ixPuts $retList

RETURNS

A sorted list of lists with the expanded port list.

SEE ALSO

ixCreatePortListWildCard