|
Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
OspfProcess is the process that handles the individual OSPF process. More...
Public Member Functions | |
| int | getProcessId () |
| Returns the OSPF process ID. More... | |
| ip | getRouterId () |
| Returns the router-ID for this OSPF process. More... | |
| int | getAreaCount () |
| Returns the number of OSPF areas. More... | |
| OspfArea | getAreaAt (int) |
| Returns the OSPF area at the specified index. More... | |
| OspfArea | getArea (ip) |
| Returns the OSPF area with the specified ID in IP address format. More... | |
| void | removeArea (ip) |
| Removes the OSPF area with the specified ID in IP address format. More... | |
| bool | setAreaAuthentication (ip, OspfAuthType) |
| int | getAreaAuthenticationCount () |
| Returns the number of authenticated areas. More... | |
| pair< ip, int > | getAreaAuthenticationAt (int) |
| Returns the ID in IP address format and authentication type of the authenticated area at the specifed index. More... | |
| OspfAuthType | getAreaAuthentication (ip) |
| Returns the authentication type of the area with the specified ID in IP address format. More... | |
| void | setDefaultInfoOrig (OspfDefaultInfoOrig) |
| Sets the default information originate setting. More... | |
| OspfDefaultInfoOrig | getDefaultInfoOrig () |
| Returns the default information originate setting. More... | |
| void | setLogAdjacencyChanges (OspfLogChanges) |
| Sets the log adjacadeny changes setting. More... | |
| OspfLogChanges | getLogAdjacencyChanges () |
| Returns the log adjacadeny changes setting. More... | |
| void | addConfiguredNetwork (ip, ip, ip) |
| Enables OSPF routing in the specified OSPF area for the specified network. More... | |
| void | removeConfigureNetwork (ip, ip, ip) |
| Disables OSPF routing in the specified OSPF area for the specified network. More... | |
| int | getConfNetworkCount () |
| Returns the number of configured networks. More... | |
| OspfAreaNetwork | getConfNetworkAt (int) |
| Returns the configured network at the specified index. More... | |
| ip | getAreaId (ip, ip) |
| Returns the area ID in IP address format of the specified network. More... | |
| void | setDefaultPassiveInt (bool) |
| Enables or disables default passive interface. More... | |
| bool | getDefaultPassiveInt () |
| Returns true if default passive interface is enabled, otherwise false. More... | |
| void | setPassiveInt (string, bool) |
| Enables or disables passive interface for the specified port. More... | |
| void | generateOspfRoutes (ip) |
| Generates the OSPF routes for the OSPF area with the specified ID in IP address format. More... | |
Public Member Functions inherited from RoutingProtocol | |
| void | setAdminDistance (int) |
| Sets the administrative distance. More... | |
| int | getAdminDistance () |
| Returns the administrative distance. More... | |
Public Member Functions inherited from Process | |
| Device | getOwnerDevice () |
| Returns the device for this process. More... | |
OspfProcess is the process that handles the individual OSPF process.
| void OspfProcess::addConfiguredNetwork | ( | ip | , |
| ip | , | ||
| ip | |||
| ) |
Enables OSPF routing in the specified OSPF area for the specified network.
| ipAddressArea,the | ID in IP address format of the OSPF area. |
| ipAddress,the | network address. |
| mask,the | OSPF wild card bits. |
| void OspfProcess::generateOspfRoutes | ( | ip | ) |
Generates the OSPF routes for the OSPF area with the specified ID in IP address format.
| ipAddressAreaID,the | ID in IP address format of the OSPF area of interest. |
| OspfArea OspfProcess::getArea | ( | ip | ) |
| OspfArea OspfProcess::getAreaAt | ( | int | ) |
| OspfAuthType OspfProcess::getAreaAuthentication | ( | ip | ) |
Returns the authentication type of the area with the specified ID in IP address format.
| ipAddressArea,the | ID in IP address format of the area of interest. |
| pair< ip, int > OspfProcess::getAreaAuthenticationAt | ( | int | ) |
Returns the ID in IP address format and authentication type of the authenticated area at the specifed index.
| index,the | index of the authenticated area of interest. |
| int OspfProcess::getAreaAuthenticationCount | ( | ) |
Returns the number of authenticated areas.
| int OspfProcess::getAreaCount | ( | ) |
Returns the number of OSPF areas.
| ip OspfProcess::getAreaId | ( | ip | , |
| ip | |||
| ) |
Returns the area ID in IP address format of the specified network.
| ipAddress,the | network address. |
| mask,the | OSPF wild card bits. |
| OspfAreaNetwork OspfProcess::getConfNetworkAt | ( | int | ) |
Returns the configured network at the specified index.
| index,the | index of the network of interest. |
| int OspfProcess::getConfNetworkCount | ( | ) |
Returns the number of configured networks.
| OspfDefaultInfoOrig OspfProcess::getDefaultInfoOrig | ( | ) |
Returns the default information originate setting.
| bool OspfProcess::getDefaultPassiveInt | ( | ) |
Returns true if default passive interface is enabled, otherwise false.
| OspfLogChanges OspfProcess::getLogAdjacencyChanges | ( | ) |
Returns the log adjacadeny changes setting.
| int OspfProcess::getProcessId | ( | ) |
Returns the OSPF process ID.
| ip OspfProcess::getRouterId | ( | ) |
Returns the router-ID for this OSPF process.
| void OspfProcess::removeArea | ( | ip | ) |
Removes the OSPF area with the specified ID in IP address format.
| ipAddressArea,the | ID in IP address format of the OSPF area of interest. |
| void OspfProcess::removeConfigureNetwork | ( | ip | , |
| ip | , | ||
| ip | |||
| ) |
Disables OSPF routing in the specified OSPF area for the specified network.
| ipAddressArea,the | ID in IP address format of the OSPF area. |
| ipAddress,the | network address. |
| mask,the | OSPF wild card bits. |
| bool OspfProcess::setAreaAuthentication | ( | ip | , |
| OspfAuthType | |||
| ) |
\Sets the authentication type for the OSPF area with the specified ID in IP address format.
| ipAddressArea,the | ID in IP address format of the OSPF area of interest. |
| type,the | authentication type. Authentication types: eNoAuth = 0, eAuth = 1, eMD5Auth = 2 |
| void OspfProcess::setDefaultInfoOrig | ( | OspfDefaultInfoOrig | ) |
Sets the default information originate setting.
| type,the | default information originate setting. Default information originate settings: eNoDefaultInfoOrig = 0, eDefaultInfoOrig = 1, eDefaultInfoOrigAlways = 2 |
| void OspfProcess::setDefaultPassiveInt | ( | bool | ) |
Enables or disables default passive interface.
| b,true | to enable default passive interface, false to disable it. |
| void OspfProcess::setLogAdjacencyChanges | ( | OspfLogChanges | ) |
Sets the log adjacadeny changes setting.
| type,the | log adjacadeny changes setting. Log adjacadeny changes settings: eNoLogChange = 0, eLogChange = 1, eLogChangeDetail = 2 |
| void OspfProcess::setPassiveInt | ( | string | , |
| bool | |||
| ) |
Enables or disables passive interface for the specified port.
| 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 |
| bPassive,true | to enable passive interface, false to disable it. |