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
PolicyClassSetDscp Class Reference

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...
 

Detailed Description

PolicyClassSetDscp handles and manipulates policy-map class DSCP and IP precedence.

Member Function Documentation

◆ getType()

QoS::EWredType PolicyClassSetDscp::getType ( )

Returns the policy map class type.

Returns
enum<QoS::EWredType>, the QoS policy type. QoS policy types: eWredDscp = 0, eWredPrec = 1

◆ getValue()

int PolicyClassSetDscp::getValue ( )

Returns the value of the DSCP or IP precedence.

Returns
int, the value of the DSCP or IP precedence.

◆ isIpv4Only()

bool PolicyClassSetDscp::isIpv4Only ( )

Returns true if the policy map class is for IPv4 only, otherwise false.

Returns
bool, true if the policy map class is for IPv4 only, otherwise false.

◆ toString()

string PolicyClassSetDscp::toString ( bool  )

Returns the output of the policy map class.

Parameters
showIpType,trueto display the ip type, false to not display it.
Returns
string, the output of the policy map class.

◆ update()

void PolicyClassSetDscp::update ( QoS::EWredType  ,
bool  ,
int   
)

Updates the policy map class with the specified type and value.

Parameters
enum<QoS::EWredType>,theQoS policy type. QoS policy types: eWredDscp = 0, eWredPrec = 1
ipv4Only,truefor IPv4 only, false for IPv4 and IPv6.
value,thevalue for the QoS policy type.

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