Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
LoopbackManager Class Reference

LoopbackManager is the process that manages loopback interfaces. More...

Inheritance diagram for LoopbackManager:
Process

Public Member Functions

RouterPort getLoopback (int)
 Returns the loopback interface at the specified loopback interface number. More...
 
RouterPort getLoopbackAt (int)
 Returns the loopback interface at the specified index. More...
 
bool addLoopback (int)
 Adds a loopback interface with the specified loopback interface number. More...
 
bool removeLoopback (int)
 Removes the loopback interface with the specified loopback interface number. More...
 
int getLoopbackCount ()
 Returns the number of loopback interfaces. More...
 
- Public Member Functions inherited from Process
Device getOwnerDevice ()
 Returns the device for this process. More...
 

Detailed Description

LoopbackManager is the process that manages loopback interfaces.

Member Function Documentation

◆ addLoopback()

bool LoopbackManager::addLoopback ( int  )

Adds a loopback interface with the specified loopback interface number.

Parameters
loopbackNumber,theloopback interface number.
Returns
bool, true if successful, otherwise false.

◆ getLoopback()

RouterPort LoopbackManager::getLoopback ( int  )

Returns the loopback interface at the specified loopback interface number.

Parameters
loopbackNumber,theloopback interface number of interest.
Returns
RouterPort, the RouterPort object at the specified loopback interface number.

◆ getLoopbackAt()

RouterPort LoopbackManager::getLoopbackAt ( int  )

Returns the loopback interface at the specified index.

Parameters
index,theindex of the loopback interface of interest.
Returns
RouterPort, the RouterPort object at the specified index.

◆ getLoopbackCount()

int LoopbackManager::getLoopbackCount ( )

Returns the number of loopback interfaces.

Returns
int, the number of loopback interfaces.

◆ removeLoopback()

bool LoopbackManager::removeLoopback ( int  )

Removes the loopback interface with the specified loopback interface number.

Parameters
loopbackNumber,theloopback interface number of interest.
Returns
bool, true if successful, otherwise false.

The documentation for this class was generated from the following file: