pyaoscx.poe_interface module

class pyaoscx.poe_interface.PoEInterface(session, parent_interface, **kwargs)

Bases: pyaoscx.pyaoscx_module.PyaoscxModule

Provide configuration management for PoE Interface on AOS-CX devices.

allocate_by_method

Getter method for the allocate_by_method attribute.

Returns:String value for method.
apply()
Apply an update of values of this PoE Interface. Calls self.update()
to apply changes to an existing PoE Interface.
assigned_class

Getter method for the cfg_assigned_class attribute.

Returns:String value for assigned class.
collection_uri = 'system/interfaces'
create()

Not needed for PoEInterface

delete()

Not needed for PoEInterface

classmethod from_uri()

Not needed for PoEInterface

get(depth=None, selector=None)
Perform a GET call to retrieve data for a PoE Interface 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 select specific information to return.
Returns:

Returns True if no exception is raised.

get_all()

Not needed for PoEInterface

get_info_format()
Method used to obtain correct object format for referencing inside
other objects.
Returns:Object format depending on the API Version.
get_uri()

Method used to obtain the specific PoE Interface URI.

Returns:Object URI.
indices = ['name']
modified

Return boolean with whether this object has been modified.

object_uri = 'system/interfaces/{interface}/poe_interface'
pd_class_override

Getter method for pd_class_override attribute.

Returns:Bool value for pd_class_override.
power_enabled

Getter method for admin_disabled attribute.

Returns:Bool value for priority.
pre_standard_detect

Getter method for pre_standard_detect attribute.

Returns:Bool value for pre_standard_detect.
priority

Getter method for the priority attribute.

Returns:String value for priority.
resource_uri_name = 'poe_interface'
update()

Perform a PUT call to apply changes to an existing PoE Interface.

Returns:True if Object was modified and a PUT request was made.
was_modified()

Getter method for the __modified attribute.

Returns:Boolean True if the object was recently modified.