Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
RoutingProcess handles and manipulates the static routing. More...
Public Member Functions | |
void | clearAllRoutes () |
Clears all routes. More... | |
void | clearRoute (ip, ip) |
Clears the specified route. More... | |
bool | addStaticRoute (ip, ip, ip, string, int) |
Adds a static route. More... | |
bool | removeStaticRoute (ip, ip, ip, string, int) |
Removes the specified static route. More... | |
int | getStaticRouteCount () |
Returns the number of static routes. More... | |
StaticRoute | getStaticRouteAt (int) |
Returns the static route at the specified index. More... | |
RoutingTable | getRoutingTable () |
Returns the routing table. More... | |
void | routeAdded (ip, ip, int, int, ip, string, string) |
This event is emitted when a route is added. More... | |
void | routeRemoved (ip, ip, int, int, ip, string, string) |
This event is emitted when a route is removed. More... | |
void | networkAdded (ip, ip) |
This event is emitted when a network is added. More... | |
void | networkRemoved (ip, ip) |
This event is emitted when a network is removed. More... | |
![]() | |
Device | getOwnerDevice () |
Returns the device for this process. More... | |
RoutingProcess handles and manipulates the static routing.
bool RoutingProcess::addStaticRoute | ( | ip | , |
ip | , | ||
ip | , | ||
string | , | ||
int | |||
) |
Adds a static route.
ipAddress,the | network address. |
subnetMas,the | network mask. |
nextHop,the | next hop address. |
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 |
adminDistance,the | administrative distance value. |
void RoutingProcess::clearAllRoutes | ( | ) |
Clears all routes.
void RoutingProcess::clearRoute | ( | ip | , |
ip | |||
) |
Clears the specified route.
networkId,the | network address of interest. |
mask,the | network mask of interest. |
RoutingTable RoutingProcess::getRoutingTable | ( | ) |
Returns the routing table.
StaticRoute RoutingProcess::getStaticRouteAt | ( | int | ) |
Returns the static route at the specified index.
index,the | index of the static route of interest. |
int RoutingProcess::getStaticRouteCount | ( | ) |
Returns the number of static routes.
void RoutingProcess::networkAdded | ( | ip | , |
ip | |||
) |
This event is emitted when a network is added.
IPC event.
void RoutingProcess::networkRemoved | ( | ip | , |
ip | |||
) |
This event is emitted when a network is removed.
IPC event.
bool RoutingProcess::removeStaticRoute | ( | ip | , |
ip | , | ||
ip | , | ||
string | , | ||
int | |||
) |
Removes the specified static route.
ipAddress,the | network address. |
subnetMas,the | network mask. |
nextHop,the | next hop address. |
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 |
adminDistance,the | administrative distance value. |
void RoutingProcess::routeAdded | ( | ip | , |
ip | , | ||
int | , | ||
int | , | ||
ip | , | ||
string | , | ||
string | |||
) |
This event is emitted when a route is added.
IPC event.
void RoutingProcess::routeRemoved | ( | ip | , |
ip | , | ||
int | , | ||
int | , | ||
ip | , | ||
string | , | ||
string | |||
) |
This event is emitted when a route is removed.
IPC event.