|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
Port holds and manipulates the ports on devices. More...
Public Member Functions | |
| string | getName () |
| Returns the name of the port. More... | |
| int | getChannel () |
| Returns the channel of the port. More... | |
| void | setChannel (int) |
| Sets the channel of the port. More... | |
| string | getTerminalTypeShortString () |
| Returns the name of the port shortened, without number. More... | |
| string | getPortNameNumber () |
| Returns the port number. Can have something like 0/0/0, etc. More... | |
| PortType | getType () |
| Returns the type of the port. More... | |
| void | setDescription (string) |
| Sets the description for the port. More... | |
| string | getDescription () |
| Returns the description of the port. More... | |
| void | setPower (bool) |
| Sets the power state for the port. More... | |
| bool | getPower () |
| Returns true if the port is on, false if the port is off. More... | |
| void | powerChanged (bool) |
| This event is emitted when the power state of the port changes. More... | |
| bool | isStraightPins () |
| Returns true if the pins are straight, for ethernet. More... | |
| bool | isAutoCross () |
| Returns true if the port is configured for auto crossover, for ethernet. More... | |
| void | setBandwidth (int) |
| Sets the bandwidth for the port. More... | |
| int | getBandwidth () |
| Returns the bandwidth of the port. More... | |
| void | setBandwidthAutoNegotiate (bool) |
| Enables or disables bandwidth auto negotiation. More... | |
| bool | isBandwidthAutoNegotiate () |
| Returns true if bandwidth auto negotiation is enabled, otherwise false. More... | |
| void | setFullDuplex (bool) |
| Enables or disables full duplex mode. More... | |
| bool | isFullDuplex () |
| Returns true if full duplex mode is enabled, otherwise false. More... | |
| void | setDuplexAutoNegotiate (bool) |
| Enables or disables duplex auto negotiation. More... | |
| bool | isDuplexAutoNegotiate () |
| Returns true if duplex auto negotiation is enabled, otherwise false. More... | |
| void | setMacAddress (mac) |
| Sets the MAC address on the port. More... | |
| mac | getMacAddress () |
| Returns the MAC address set on the port. More... | |
| void | macChanged (mac, mac) |
| This event is emitted when the MAC address on the port changes. More... | |
| mac | getBia () |
| Returns the burned-in address of the port. More... | |
| void | setClockRate (int) |
| Sets the clock rate on the port. More... | |
| int | getClockRate () |
| Returns the clock rate on the port. More... | |
| Link | getLink () |
| Returns the link connected to the port. More... | |
| bool | isProtocolUp () |
| Returns true if the line protocol is up on the port, otherwise false. More... | |
| bool | isPortUp () |
| Returns true if the status is up on the port, otherwise false. More... | |
| Process | getEncapProcess () |
| Returns the encapsulation process. More... | |
| Process | getKeepAliveProcess () |
| Returns the keepalive process. More... | |
| QString | getRemotePortName () |
| Returns the name of the remote port. More... | |
| LightStatus | getLightStatus () |
| Returns the link light status. More... | |
| void | lightStatusChanged (LightStatus) |
| This event is emitted when the link light changes. More... | |
| void | lightBlinked () |
| This event is emitted when the link light blinks. More... | |
| void | portStatusChanged (bool) |
| This event is emitted when the port status changes. More... | |
| void | lineProtocolChanged (bool) |
| This event is emitted when the line protocol status changes. More... | |
| void | packetReceived (string, int) |
| This event is emitted when the port receives a packet. More... | |
| void | packetSent (string, int) |
| This event is emitted when the port sends a packet. More... | |
| void | packetReceivedWithDetails (Signal, int) |
| This event is emitted when the port receives a packet with details. More... | |
| void | packetSentWithDetails (Signal, int) |
| This event is emitted when the port sends a packet with details. More... | |
| int | getHigherProcessCount () |
| Returns the higher process count. More... | |
| HardwareQueue | getHardwareQueue () |
| Returns the hardware queue. More... | |
| QueueProcess | getQosQueue () |
| Returns the qos queue. More... | |
| bool | isEthernetPort () |
| Returns true if it is a ethernet port, false if not. More... | |
| bool | isWirelessPort () |
| Returns true if it is a wireless port, false if not. More... | |
| bool | isPowerOn () |
| Returns true if the power is on, false if not. More... | |
| void | deleteLink () |
Public Member Functions inherited from Process | |
| Device | getOwnerDevice () |
| Returns the device for this process. More... | |
Port holds and manipulates the ports on devices.
| void Port::deleteLink | ( | ) |
| int Port::getBandwidth | ( | ) |
Returns the bandwidth of the port.
| mac Port::getBia | ( | ) |
Returns the burned-in address of the port.
| int Port::getChannel | ( | ) |
Returns the channel of the port.
| int Port::getClockRate | ( | ) |
Returns the clock rate on the port.
| string Port::getDescription | ( | ) |
Returns the description of the port.
| Process Port::getEncapProcess | ( | ) |
| HardwareQueue Port::getHardwareQueue | ( | ) |
Returns the hardware queue.
| int Port::getHigherProcessCount | ( | ) |
Returns the higher process count.
| Process Port::getKeepAliveProcess | ( | ) |
| LightStatus Port::getLightStatus | ( | ) |
Returns the link light status.
| Link Port::getLink | ( | ) |
| mac Port::getMacAddress | ( | ) |
Returns the MAC address set on the port.
| string Port::getName | ( | ) |
Returns the name of the port.
| string Port::getPortNameNumber | ( | ) |
Returns the port number. Can have something like 0/0/0, etc.
| bool Port::getPower | ( | ) |
Returns true if the port is on, false if the port is off.
| QueueProcess Port::getQosQueue | ( | ) |
Returns the qos queue.
| QString Port::getRemotePortName | ( | ) |
Returns the name of the remote port.
| string Port::getTerminalTypeShortString | ( | ) |
Returns the name of the port shortened, without number.
| PortType Port::getType | ( | ) |
Returns the type of the port.
| bool Port::isAutoCross | ( | ) |
Returns true if the port is configured for auto crossover, for ethernet.
| bool Port::isBandwidthAutoNegotiate | ( | ) |
Returns true if bandwidth auto negotiation is enabled, otherwise false.
| bool Port::isDuplexAutoNegotiate | ( | ) |
Returns true if duplex auto negotiation is enabled, otherwise false.
| bool Port::isEthernetPort | ( | ) |
Returns true if it is a ethernet port, false if not.
| bool Port::isFullDuplex | ( | ) |
Returns true if full duplex mode is enabled, otherwise false.
| bool Port::isPortUp | ( | ) |
Returns true if the status is up on the port, otherwise false.
| bool Port::isPowerOn | ( | ) |
Returns true if the power is on, false if not.
| bool Port::isProtocolUp | ( | ) |
Returns true if the line protocol is up on the port, otherwise false.
| bool Port::isStraightPins | ( | ) |
Returns true if the pins are straight, for ethernet.
| bool Port::isWirelessPort | ( | ) |
Returns true if it is a wireless port, false if not.
| void Port::lightBlinked | ( | ) |
This event is emitted when the link light blinks.
IPC event.
| void Port::lightStatusChanged | ( | LightStatus | ) |
| void Port::lineProtocolChanged | ( | bool | ) |
This event is emitted when the line protocol status changes.
IPC event.
| void Port::macChanged | ( | mac | , |
| mac | |||
| ) |
This event is emitted when the MAC address on the port changes.
IPC event.
| void Port::packetReceived | ( | string | , |
| int | |||
| ) |
This event is emitted when the port receives a packet.
IPC event.
| void Port::packetReceivedWithDetails | ( | Signal | , |
| int | |||
| ) |
This event is emitted when the port receives a packet with details.
IPC event.
| void Port::packetSent | ( | string | , |
| int | |||
| ) |
This event is emitted when the port sends a packet.
IPC event.
| void Port::packetSentWithDetails | ( | Signal | , |
| int | |||
| ) |
This event is emitted when the port sends a packet with details.
IPC event.
| void Port::portStatusChanged | ( | bool | ) |
This event is emitted when the port status changes.
IPC event.
| void Port::powerChanged | ( | bool | ) |
This event is emitted when the power state of the port changes.
IPC event.
| void Port::setBandwidth | ( | int | ) |
Sets the bandwidth for the port.
| bandwidth,the | bandwidth for the port. |
| void Port::setBandwidthAutoNegotiate | ( | bool | ) |
Enables or disables bandwidth auto negotiation.
| autoNegotiate,true | to enable bandwidth auto negotiation, false to disable it. |
| void Port::setChannel | ( | int | ) |
Sets the channel of the port.
\channel, the channel of the port.
| void Port::setClockRate | ( | int | ) |
Sets the clock rate on the port.
| clockrate,the | clock rate to set on the port. |
| void Port::setDescription | ( | string | ) |
Sets the description for the port.
| description,the | description for the port. |
| void Port::setDuplexAutoNegotiate | ( | bool | ) |
Enables or disables duplex auto negotiation.
| autoNegotiate,true | to enable duplex auto negotiation, false to disable it. |
| void Port::setFullDuplex | ( | bool | ) |
Enables or disables full duplex mode.
| fullDuplex,true | to enable full duplex mode, false to disable it. |
| void Port::setMacAddress | ( | mac | ) |
Sets the MAC address on the port.
| macAddress,the | MAC address to set on the port. |
| void Port::setPower | ( | bool | ) |
Sets the power state for the port.
| bOn,true | to turn the port on, false to turn it off. |