oamPort

oamPort - configure the OAM port propterties.

SYNOPSIS

oamPort sub-command options

DESCRIPTION

The oamPort command is used to configure the OAM port properties. Stream configuration for OAM is implemented by oamHeader.

STANDARD OPTIONS
enable true/false

Enables/disables the OAM on the port. (default = false)

macAddress

Allows configuration of the OAM Mac address on the port.

(default = '00 00 00 00 00 00')

enableLoopback

true/false

Enables/disables the OAM loopback capabilities. (default = false)

enableLinkEvents

true/false

Enables/disables the OAM link events capabilities. (default = false)

maxOamPduSize

Allows configuration of the maximum OAM PDU size. (default = 1518)

oui

Allows configuration of the organization unique identifier. (default = '00 00 00')

vendorSpecificInformation

Allows configuration of the vendor specific information.

(default = '00 00 00 00')

idleTimer

Allows configuration of the idle timer (in seconds). (default = 5)

enableOptionalTlv

Enable/disable optional TLV. (default = false)

optionalTlvType

Applies only when enableOptionalTlv is set to true. (default = 254, which is oamInformationOrgInfo):

Option

Value

Usage

oamInformationEndOfTlv

0x00

(default) End of TLV Marker

oamInformationLocalInfo

0x01

Local Information TLV

oamInformationRemoteInfo

0x02

Remote Information TLV

oamInformationOrgInfo

0xFE

Organization Specific TLV

optionalTlvValue

Applies only when enableOptionalTlv is set to true.

COMMANDS

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

oamPort setDefault

Sets to IxTclHal default values for all configuration options.

oamPort set chasID cardID portID

Sets the OAM configuration into the port.

oamPort get chasID cardID portID

Retrieves the configured OAM from the port.

EXAMPLES

package req IxTclHal

 

set hostname astro

ixConnectToChassis $hostname

 

if {[ixConnectToChassis $hostName] } {

errorMsg "Error connecting to $hostName"

set retCode "FAIL"

}

set chassId [chassis cget -id]

set portList [list]

 

for { set cardId 1 } {$cardId <= [chassis cget -maxCardCount]} {incr cardId} {

if {[card get $chassId $cardId] == $::TCL_OK} {

set portId 1

if {[port isValidFeature $chassId $cardId $portId portFeatureEthernetOAM]} {

port setModeDefaults $chassId $cardId $portId

lappend portList [list $chassId $cardId $portId]

}

}

}

if {[llength $portList] == 0} {

errorMsg "No ports in port list that support portFeatureEthernetOAM"

set retCode "FAIL"

return $retCode

}

 

foreach port $portList {

scan $port "%d %d %d" chassId cardId portId

 

oamPort config -enable $::true

oamPort config -macAddress "01 02 03 aa bb cc"

oamPort config -enableLoopback $::true

if {[oamPort set $chassId $cardId $portId]} {

errorMsg "Error setting oamPort on $chassId $cardId $portId"

}

}

 

ixWriteConfigToHardware portList

 

 

foreach port $portList {

scan $port "%d %d %d" chassId cardId portId

 

if {[oamStatus get $chassId $cardId $portId]} {

errorMsg "Error getting oamStatus on $chassId $cardId $portId"

}

if {[oamStatus getLocalStatus]} {

errorMsg "Error getting oamStatus on $chassId $cardId $portId"

}

ixPuts "Local oamVersion:[oamStatus cget -oamVersion]"

ixputs "Local discoveryStatus:[oamStatus cget

-discoveryStatus]"

 

if {[oamStatus getRemoteStatus} {

errorMsg "Error getting oamStatus on $chassId $cardId $portId"

}

ixPuts "Remote oamVersion:[oamStatus cget -oamVersion]"

ixputs "Remote discoveryStatus:[oamStatus cget

-discoveryStatus]"

}

SEE ALSO

oamStatus.