Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
Vlan handles and manipulates the individual VLAN. More...
Public Member Functions | |
string | getName () |
Returns the name of this VLAN. More... | |
MacTable | getMacTable () |
Returns the MAC address table. More... | |
bool | isDefault () |
Returns true if this is the default VLAN, otherwise false. More... | |
int | getVlanNumber () |
Returns the VLAN number of this VLAN. More... | |
void | macEntryAdded (mac, string, bool) |
This event is emitted when a MAC address entry is added. More... | |
void | macEntryRemoved (mac, string, bool) |
This event is emitted when a MAC address entry is removed. More... | |
Vlan handles and manipulates the individual VLAN.
string Vlan::getName | ( | ) |
Returns the name of this VLAN.
int Vlan::getVlanNumber | ( | ) |
Returns the VLAN number of this VLAN.
bool Vlan::isDefault | ( | ) |
Returns true if this is the default VLAN, otherwise false.
void Vlan::macEntryAdded | ( | mac | , |
string | , | ||
bool | |||
) |
This event is emitted when a MAC address entry is added.
IPC event.
void Vlan::macEntryRemoved | ( | mac | , |
string | , | ||
bool | |||
) |
This event is emitted when a MAC address entry is removed.
IPC event.