Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
PolicyMap handles and manipulates policy maps. More...
Public Member Functions | |
int | getClassCnt () |
Returns the number of policies. More... | |
PolicyMapQosClass | getClassAt (int) |
Returns QoS class at the specified index. More... | |
int | getTotalBandwidth () |
Returns the total bandwidth value. More... | |
int | getTotalBandwidthPercent () |
Returns the total bandwidth percentage. More... | |
int | getTotalBandwidthRemainPercent () |
Returns the total bandwidth remaining percentage. More... | |
bool | isBandwidthConfigured () |
Returns true if the bandwidth value is configured, otherwise false. More... | |
bool | isPriorityConfigured () |
Returns true if the priority is configured, otherwise false. More... | |
bool | isFairQueueConfigured () |
Returns true if fair queue is configured, otherwise false. More... | |
bool | isShapeConfigured () |
Returns true if traffic shaping is configured, otherwise false. More... | |
bool | hasOutputFeature () |
Returns true if the policy map has output feature, otherwise false. More... | |
bool | hasGtsFeature () |
Returns true if the policy map has GTS feature, otherwise false. More... | |
void | updateOutputPort () |
Updates the output port. More... | |
string | getMapName () |
Returns the name of the policy map. More... | |
QoS::eMapType | getMapType () |
Returns the type of the policy map. More... | |
void | setMapType (QoS::eMapType) |
Sets the type of the policy map. More... | |
string | toString (bool) |
Returns the name of the policy map. More... | |
PolicyMap handles and manipulates policy maps.
PolicyMapQosClass PolicyMap::getClassAt | ( | int | ) |
Returns QoS class at the specified index.
index,the | index of the QoS class of interest. |
int PolicyMap::getClassCnt | ( | ) |
Returns the number of policies.
string PolicyMap::getMapName | ( | ) |
Returns the name of the policy map.
QoS::eMapType PolicyMap::getMapType | ( | ) |
Returns the type of the policy map.
int PolicyMap::getTotalBandwidth | ( | ) |
Returns the total bandwidth value.
int PolicyMap::getTotalBandwidthPercent | ( | ) |
Returns the total bandwidth percentage.
int PolicyMap::getTotalBandwidthRemainPercent | ( | ) |
Returns the total bandwidth remaining percentage.
bool PolicyMap::hasGtsFeature | ( | ) |
Returns true if the policy map has GTS feature, otherwise false.
bool PolicyMap::hasOutputFeature | ( | ) |
Returns true if the policy map has output feature, otherwise false.
bool PolicyMap::isBandwidthConfigured | ( | ) |
Returns true if the bandwidth value is configured, otherwise false.
bool PolicyMap::isFairQueueConfigured | ( | ) |
Returns true if fair queue is configured, otherwise false.
bool PolicyMap::isPriorityConfigured | ( | ) |
Returns true if the priority is configured, otherwise false.
bool PolicyMap::isShapeConfigured | ( | ) |
Returns true if traffic shaping is configured, otherwise false.
void PolicyMap::setMapType | ( | QoS::eMapType | ) |
Sets the type of the policy map.
mapType,the | type of the policy map. Map types: type_default = 0, type_control = 1, type_inspect = 2, type_asaInspect = 3 type_logging = 4 |
string PolicyMap::toString | ( | bool | ) |
Returns the name of the policy map.
void PolicyMap::updateOutputPort | ( | ) |
Updates the output port.