calc.dscp¶
- calc.dscp.dec_to_name(dec):
Converts the DSCP decimal value to it’S corresponding name
- Parameters:
name (
int) – Decimal DSCP value (i.e. 24)- Returns:
DSCP name (i.e. CS3). Returns False if no mapping could be found
- Return type:
str|bool
- calc.dscp.dscp_map():
Internal function that returns a dict with valid DSCP names to thier decimal values
- Returns:
Dictionary containing the values (name => dec)
- Return type:
dict
- calc.dscp.name_to_dec(name):
Converts the DSCP name to it’S corresponding decimal value
- Parameters:
name (
string) – DSCP name (i.e. CS3)- Returns:
Decimal DSCP value (i.e. 24). Returns False if no mapping could be found
- Return type:
int