Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
PolicyClassSetDscp handles and manipulates policy-map class DSCP and IP precedence. More...
Public Member Functions | |
QoS::EWredType | getType () |
Returns the policy map class type. More... | |
bool | isIpv4Only () |
Returns true if the policy map class is for IPv4 only, otherwise false. More... | |
int | getValue () |
Returns the value of the DSCP or IP precedence. More... | |
void | update (QoS::EWredType, bool, int) |
Updates the policy map class with the specified type and value. More... | |
string | toString (bool) |
Returns the output of the policy map class. More... | |
PolicyClassSetDscp handles and manipulates policy-map class DSCP and IP precedence.
QoS::EWredType PolicyClassSetDscp::getType | ( | ) |
Returns the policy map class type.
int PolicyClassSetDscp::getValue | ( | ) |
Returns the value of the DSCP or IP precedence.
bool PolicyClassSetDscp::isIpv4Only | ( | ) |
Returns true if the policy map class is for IPv4 only, otherwise false.
string PolicyClassSetDscp::toString | ( | bool | ) |
Returns the output of the policy map class.
showIpType,true | to display the ip type, false to not display it. |
void PolicyClassSetDscp::update | ( | QoS::EWredType | , |
bool | , | ||
int | |||
) |
Updates the policy map class with the specified type and value.
enum<QoS::EWredType>,the | QoS policy type. QoS policy types: eWredDscp = 0, eWredPrec = 1 |
ipv4Only,true | for IPv4 only, false for IPv4 and IPv6. |
value,the | value for the QoS policy type. |