Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
PolicyMapQosClass handles and manipulates QoS classes. More...
Public Member Functions | |
void | resetBandwidth () |
Resets the bandwidth. More... | |
void | setBandwidth (int) |
Sets the bandwidth value. More... | |
int | getBandwidth () |
Returns the bandwidth value. More... | |
void | setBandwidthPercent (int) |
Sets the bandwidth percentage value. More... | |
int | getBandwidthPercent () |
Returns the bandwidth percentage value. More... | |
void | setBandwidthRemainingPercent (int) |
Sets the bandwidth remaining percentage value. More... | |
int | getBandwidthRemainingPercent () |
Returns the bandwidth remaining percentage value. More... | |
bool | isBandwidthConfigured () |
Returns true if the bandwidth is configured, otherwise false. More... | |
void | resetQueueLimit () |
Resets the queue-limit. More... | |
int | getQueueLimit () |
Returns the queue-limit value. More... | |
void | setQueueLimit (int) |
Sets the queue-limit value. More... | |
int | getDefaultQueueLimit () |
Returns the default queue-limit value. More... | |
void | resetPriority () |
Resets the priority. More... | |
void | setPriority (int, int) |
Sets the priority. More... | |
int | getPriority () |
Returns the priority value. More... | |
void | setPriorityPercent (int, int) |
Sets the priority percentage. More... | |
int | getPriorityPercent () |
Returns the priority percentage value. More... | |
int | getPriorityBurst () |
Returns the priority burst value. More... | |
int | getPriorityBurstDefault () |
Returns the default priority burst value. More... | |
bool | isPriorityConfigured () |
Returns true if the priority is configured, otherwise false. More... | |
void | addSetDscpPrec (QoS::EWredType, bool, int) |
Adds DSCP or IP Precedence. More... | |
void | removeSetDscpPrec () |
Removes DSCP or IP Precedence. More... | |
PolicyClassSetDscp | getSetDscpPrec () |
Returns the DSCP or IP precedence. More... | |
void | resetShapeAvgCir () |
Resets the shaper average CIR. More... | |
void | setShapeAvgCir (int) |
Sets shaper average CIR value. More... | |
bool | isShapeConfigured () |
Returns true if traffic shaping is configured, otherwise false. More... | |
int | getFairQueueSize () |
Returns the fair queue size value. More... | |
bool | isFairQueueConfigured () |
Returns true if fair queueing is configured, otherwise false. More... | |
int | getDefaultFairQueueSize () |
Returns the default fair queue size. More... | |
bool | isClassDefault () |
Returns true if class default, otherwise false. More... | |
PolicyMapQosClass handles and manipulates QoS classes.
void PolicyMapQosClass::addSetDscpPrec | ( | QoS::EWredType | , |
bool | , | ||
int | |||
) |
Adds DSCP or IP Precedence.
wredType,the | QoS policy type. QoS policy types: eWredDscp = 0, eWredPrec = 1 |
ipv4Only,true | for IPv4 only, false for both IPv4 and IPv6. |
value,the | value for the QoS policy type. |
int PolicyMapQosClass::getBandwidth | ( | ) |
Returns the bandwidth value.
int PolicyMapQosClass::getBandwidthPercent | ( | ) |
Returns the bandwidth percentage value.
int PolicyMapQosClass::getBandwidthRemainingPercent | ( | ) |
Returns the bandwidth remaining percentage value.
int PolicyMapQosClass::getDefaultFairQueueSize | ( | ) |
Returns the default fair queue size.
int PolicyMapQosClass::getDefaultQueueLimit | ( | ) |
Returns the default queue-limit value.
int PolicyMapQosClass::getFairQueueSize | ( | ) |
Returns the fair queue size value.
int PolicyMapQosClass::getPriority | ( | ) |
Returns the priority value.
int PolicyMapQosClass::getPriorityBurst | ( | ) |
Returns the priority burst value.
int PolicyMapQosClass::getPriorityBurstDefault | ( | ) |
Returns the default priority burst value.
int PolicyMapQosClass::getPriorityPercent | ( | ) |
Returns the priority percentage value.
int PolicyMapQosClass::getQueueLimit | ( | ) |
Returns the queue-limit value.
PolicyClassSetDscp PolicyMapQosClass::getSetDscpPrec | ( | ) |
Returns the DSCP or IP precedence.
bool PolicyMapQosClass::isBandwidthConfigured | ( | ) |
Returns true if the bandwidth is configured, otherwise false.
bool PolicyMapQosClass::isClassDefault | ( | ) |
Returns true if class default, otherwise false.
bool PolicyMapQosClass::isFairQueueConfigured | ( | ) |
Returns true if fair queueing is configured, otherwise false.
bool PolicyMapQosClass::isPriorityConfigured | ( | ) |
Returns true if the priority is configured, otherwise false.
bool PolicyMapQosClass::isShapeConfigured | ( | ) |
Returns true if traffic shaping is configured, otherwise false.
void PolicyMapQosClass::removeSetDscpPrec | ( | ) |
Removes DSCP or IP Precedence.
void PolicyMapQosClass::resetBandwidth | ( | ) |
Resets the bandwidth.
void PolicyMapQosClass::resetPriority | ( | ) |
Resets the priority.
void PolicyMapQosClass::resetQueueLimit | ( | ) |
Resets the queue-limit.
void PolicyMapQosClass::resetShapeAvgCir | ( | ) |
Resets the shaper average CIR.
void PolicyMapQosClass::setBandwidth | ( | int | ) |
Sets the bandwidth value.
bandwidth,the | bandwidth value. |
void PolicyMapQosClass::setBandwidthPercent | ( | int | ) |
Sets the bandwidth percentage value.
percent,the | bandwidth percentage value. |
void PolicyMapQosClass::setBandwidthRemainingPercent | ( | int | ) |
Sets the bandwidth remaining percentage value.
percent,the | bandwidth remaining percentage value. |
void PolicyMapQosClass::setPriority | ( | int | , |
int | |||
) |
Sets the priority.
bandwidth,the | priority value. |
burst,the | burst value. |
void PolicyMapQosClass::setPriorityPercent | ( | int | , |
int | |||
) |
Sets the priority percentage.
percent,the | percentage value. |
burst,the | burst value. |
void PolicyMapQosClass::setQueueLimit | ( | int | ) |
Sets the queue-limit value.
limit,the | queue-limit value. |
void PolicyMapQosClass::setShapeAvgCir | ( | int | ) |
Sets shaper average CIR value.
cir,shaper | average CIR value. |