pyaoscx.qos_dscp module¶
-
class
pyaoscx.qos_dscp.
QosDscp
(session, code_point, **kwargs)¶ Bases:
pyaoscx.pyaoscx_module.PyaoscxModule
Provide configuration management for QoS DSCP trust mode on AOS-CX devices.
-
apply
()¶ - Main method used to update an existing QoS table entry. Checks whether
- the QoS DSCP entry exists in the switch. Calls self.update if object is being updated.
Returns: Boolean, True if object was modified.
-
base_uri
= 'system/qos_dscp_map_entries'¶
-
code_point
¶ Method used to obtain the specific code point.
Returns: returns the code point of this QoS DSCP trust mode object.
-
color
¶ Getter method for the color property.
-
cos
¶ Getter method for the cos property.
-
create
()¶ - Perform a POST call to create a new <pyaoscx_module_type>. Only returns
- if an exception is not raise.
Returns: Boolean, True if entry was created.
-
delete
()¶ Perform DELETE call to delete <pyaoscx_module_type> table entry.
-
description
¶ Getter method for the description property.
-
classmethod
from_response
(session, response_data)¶ - Create a QoS DSCP trust mode object given a response_data related to
- the QoS DSCP trust mode object.
Parameters: - session – pyaoscx.Session object used to represent a logical connection to the device.
- response_data – The response must be a dictionary of the form: { “3” : “/rest/v10.08/system/qos_dscp_map_entries/3” }
Returns: QoS DSCP trust mode object.
-
classmethod
from_uri
(session, uri)¶ Create a QoS DSCP object given a QoS DSCP trust mode URI.
Parameters: - session – pyaoscx.Session object used to represent a logical connection to the device.
- uri – s String with a URI.
Returns: returns identifier and object.
-
get
(depth=None, selector=None)¶ - Perform a GET call to retrieve data for a QoS DSCP table entry and fill
- the object with the incoming attributes.
Parameters: - depth – Integer deciding how many levels into the API JSON that references will be returned.
- selector – Alphanumeric option to query specific information.
Returns: Returns True if there is not an exception raised.
-
classmethod
get_all
(session)¶ - Perform a GET call to retrieve all system QoS DSCP configurations from
- a switch.
Parameters: session – pyaoscx.Session object used to represent a logical connection to the device. Returns: containing all system QoS.
-
get_uri
()¶ Method used to obtain the specific QoS DSCP trust mode URI.
Returns: Object’s URI.
-
indices
= ['code_point']¶
-
local_priority
¶ Getter method for the local_priority.
-
modified
¶ Return boolean with whether this object has been modified.
-
priority_code_point
¶ Getter method for the priority_code_point property.
-
resource_uri_name
= 'qos_dscp_map_entries'¶
-
update
()¶ Perform a PUT request to update an existing QoS DSCP object.
Returns: True if Object was modified and a PUT request was made.
-
was_modified
()¶ Getter method to check it object has been modified.
Returns: Boolean True if the object was recently modified.
-