|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
StpProcess handles and manipulates STP processes. More...
Public Member Functions | |
| int | getSwitchPriority () |
| Returns the priority. More... | |
| string | getRootBridgeId () |
| Returns the root bridge ID. More... | |
| int | getPortCount () |
| Returns the number of ports in the STP process. More... | |
| bool | isRootBridge () |
| Returns true if this switch is the root bridge, otherwise false. More... | |
| string | getSwitchId () |
| Returns the ID for this switch. More... | |
| bool | hasPort (string) |
| Returns true if the specified port is in this STP process, otherwise false. More... | |
| SwitchPort | getRootPort () |
| Returns the root port in this STP process. More... | |
| int | getRootPathCost () |
| Returns the root path cost. More... | |
| void | rootChanged (QString, int, mac, int, mac, int) |
| This event is emitted when the root bridge is changed. More... | |
| void | stpPortStateChanged (QString, int, int, StpPortState, StpPortState) |
| This event is emitted when the PVST+ port state for this VLAN changes. More... | |
| void | rstpPortStateChanged (QString, int, int, RstpPortState, RstpPortState) |
| This event is emitted when the Rapid-PVST port state for this VLAN changes. More... | |
Public Member Functions inherited from Process | |
| Device | getOwnerDevice () |
| Returns the device for this process. More... | |
StpProcess handles and manipulates STP processes.
| int StpProcess::getPortCount | ( | ) |
Returns the number of ports in the STP process.
| string StpProcess::getRootBridgeId | ( | ) |
Returns the root bridge ID.
| int StpProcess::getRootPathCost | ( | ) |
Returns the root path cost.
| SwitchPort StpProcess::getRootPort | ( | ) |
Returns the root port in this STP process.
| string StpProcess::getSwitchId | ( | ) |
Returns the ID for this switch.
| int StpProcess::getSwitchPriority | ( | ) |
Returns the priority.
| bool StpProcess::hasPort | ( | string | ) |
Returns true if the specified port is in this STP process, otherwise false.
| portName,portName | can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 |
| bool StpProcess::isRootBridge | ( | ) |
Returns true if this switch is the root bridge, otherwise false.
| void StpProcess::rootChanged | ( | QString | , |
| int | , | ||
| mac | , | ||
| int | , | ||
| mac | , | ||
| int | |||
| ) |
This event is emitted when the root bridge is changed.
IPC event.
| void StpProcess::rstpPortStateChanged | ( | QString | , |
| int | , | ||
| int | , | ||
| RstpPortState | , | ||
| RstpPortState | |||
| ) |
This event is emitted when the Rapid-PVST port state for this VLAN changes.
IPC event.
| void StpProcess::stpPortStateChanged | ( | QString | , |
| int | , | ||
| int | , | ||
| StpPortState | , | ||
| StpPortState | |||
| ) |
This event is emitted when the PVST+ port state for this VLAN changes.
IPC event.