From f23504c5280bac6ec023088165bcd2d5faf336d4 Mon Sep 17 00:00:00 2001 From: James Raphael Tiovalen Date: Mon, 15 Apr 2024 01:16:25 +0800 Subject: [PATCH] Add more device subsystem attributes Currently, the subsystem attribute list in the device module is incomplete. Add more attributes to complete the list so as to allow users to get more information on subsystems. The added attributes are commonly available on all current ArubaOS-CX wired network switch product series for REST API v10.04 onwards. Signed-off-by: James Raphael Tiovalen --- pyaoscx/device.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/pyaoscx/device.py b/pyaoscx/device.py index 20f9855..c633a5b 100644 --- a/pyaoscx/device.py +++ b/pyaoscx/device.py @@ -122,10 +122,52 @@ def get_subsystems(self): # Attribute list attributes = [ "product_info", + "part_number_cfg", + "software_images", + "buttons", + "leds", "power_supplies", "interfaces", "fans", + "temp_sensors", + "storage", + "resource_capacity", "resource_utilization", + "resource_utilization_per_feature", + "resource_unreserved", + "resource_reservation_per_feature", + "resource_width_per_feature", + "name", + "state", + "type", + "admin_state", + "entity_state", + "thermal_state", + "acl_init_status", + "pac_gbp_init_status", + "policy_init_status", + "data_plane_connectivity_state", + "data_plane_connectivity_target_state", + "data_plane_state", + "data_plane_target_state", + "data_plane_error", + "capacities", + "capabilities", + "daemons", + "diagnostic_disable", + "diagnostic_last_run_timestamp", + "diagnostic_performed", + "diagnostic_requested", + "power_consumed", + "selftest", + "selftest_disable", + "reboot_statistics", + "resets_performed", + "resets_requested", + "fan_configuration_state", + "next_mac_address", + "macs_remaining", + "usb_status", ] # Format attribute list by joining every element with a comma