Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--------------------------------------------------------------------------------
Fix
--------------------------------------------------------------------------------
* C9400
* Modified/Revised ShowEnvironmentAll:
* Changed schema to include "switch" for every switch in the stack.
* Updated regex pattern to accomodate for "Switch:1" and "Switch: 1" outputs and use those as keys to the power supply and fantray parsing.
64 changes: 44 additions & 20 deletions sdk_generator/outputs/github_parser.json
Original file line number Diff line number Diff line change
Expand Up @@ -27357,6 +27357,18 @@
},
"uid": "show_environment_all",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/ie3k/show_platform.py#L559"
},
"rv2": {
"class": "ShowEnvironmentAll",
"doc": "Parser for show environment all\n show environment all | include {include}",
"module_name": "iosxe.rv2.show_platform",
"package": "genie.libs.parser",
"schema": "{\n Optional('critical_alarms'): int,\n Optional('major_alarms'): int,\n Optional('minor_alarms'): int,\n 'sensor_list': {\n Any('*'): {\n 'slot': {\n Any('*'): {\n 'sensor': {\n Any('*'): {\n 'state': str,\n 'reading': str,\n Optional('threshold'): {\n 'minor': int,\n 'major': int,\n 'critical': int,\n 'shutdown': int,\n 'unit': str,\n },\n },\n },\n },\n },\n },\n },\n 'switch': {\n Any('*'): {\n 'power_supply': {\n 'slot': {\n Any('*'): {\n 'model_no': str,\n 'type': str,\n 'capacity': str,\n 'status': str,\n 'fan_1_state': str,\n 'fan_2_state': str,\n },\n },\n 'current_configuration_mode': str,\n 'current_operating_state': str,\n 'currently_active': int,\n 'currently_available': int,\n },\n 'fantray': {\n 'status': str,\n 'power_consumed_by_fantray_watts': int,\n 'fantray_airflow_direction': str,\n 'fantray_beacon_led': str,\n 'fantray_status_led': str,\n 'system': str,\n },\n },\n },\n}",
"tokens": {
"revision": "2"
},
"uid": "show_environment_all",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/rv2/show_platform.py#L659"
}
},
"module_name": "iosxe.show_platform",
Expand Down Expand Up @@ -27415,6 +27427,18 @@
"tokens": {
"platform": "cat9k"
}
},
"rv2": {
"class": "ShowEnvironmentAll",
"doc": "Parser for show environment all\n show environment all | include {include}",
"module_name": "iosxe.rv2.show_platform",
"package": "genie.libs.parser",
"schema": "{\n Optional('critical_alarms'): int,\n Optional('major_alarms'): int,\n Optional('minor_alarms'): int,\n 'sensor_list': {\n Any('*'): {\n 'slot': {\n Any('*'): {\n 'sensor': {\n Any('*'): {\n 'state': str,\n 'reading': str,\n Optional('threshold'): {\n 'minor': int,\n 'major': int,\n 'critical': int,\n 'shutdown': int,\n 'unit': str,\n },\n },\n },\n },\n },\n },\n },\n 'switch': {\n Any('*'): {\n 'power_supply': {\n 'slot': {\n Any('*'): {\n 'model_no': str,\n 'type': str,\n 'capacity': str,\n 'status': str,\n 'fan_1_state': str,\n 'fan_2_state': str,\n },\n },\n 'current_configuration_mode': str,\n 'current_operating_state': str,\n 'currently_active': int,\n 'currently_available': int,\n },\n 'fantray': {\n 'status': str,\n 'power_consumed_by_fantray_watts': int,\n 'fantray_airflow_direction': str,\n 'fantray_beacon_led': str,\n 'fantray_status_led': str,\n 'system': str,\n },\n },\n },\n}",
"tokens": {
"revision": "2"
},
"uid": "show_environment_all___include_include",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/rv2/show_platform.py#L659"
}
},
"tokens": {
Expand Down Expand Up @@ -100613,7 +100637,7 @@
"os": "iosxe"
},
"uid": "show_run_policy-map_name",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L70"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L73"
}
}
},
Expand Down Expand Up @@ -100677,7 +100701,7 @@
"os": "iosxe"
},
"uid": "show_running-config_aaa",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L3169"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L3170"
}
}
},
Expand All @@ -100693,7 +100717,7 @@
"os": "iosxe"
},
"uid": "show_running-config_aaa_radius-server",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4921"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4922"
}
}
},
Expand All @@ -100704,12 +100728,12 @@
"doc": "Parser for:\n * 'show running-config aaa user-name'\n ",
"module_name": "iosxe.show_run",
"package": "genie.libs.parser",
"schema": "{\n 'username': {\n Any('*'): {\n Optional('creation_time'): int,\n Optional('password'): {\n Optional('type'): int,\n Optional('password'): str,\n },\n Optional('privilege'): int,\n Optional('common_criteria_policy'): str,\n Optional('view'): str,\n Optional('type'): str,\n Optional('onetime'): bool,\n Optional('secret'): {\n Optional('type'): int,\n Optional('secret'): str,\n },\n },\n },\n}",
"schema": "{\n 'username': {\n Any('*'): {\n Optional('creation_time'): int,\n Optional('password'): {\n Optional('type'): int,\n Optional('password'): str,\n },\n Optional('privilege'): int,\n Optional('common_criteria_policy'): str,\n Optional('view'): str,\n Optional('type'): str,\n Optional('autocommand'): str,\n Optional('onetime'): bool,\n Optional('nopassword'): bool,\n Optional('secret'): {\n Optional('type'): int,\n Optional('secret'): str,\n },\n },\n },\n}",
"tokens": {
"os": "iosxe"
},
"uid": "show_running-config_aaa_user-name",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L2768"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L2773"
}
}
},
Expand All @@ -100720,12 +100744,12 @@
"doc": "Parser for :\n * 'show running-config aaa username'\n ",
"module_name": "iosxe.show_run",
"package": "genie.libs.parser",
"schema": "{\n 'username': {\n Any('*'): {\n Optional('creation_time'): int,\n Optional('password'): {\n Optional('type'): int,\n Optional('password'): str,\n },\n Optional('privilege'): int,\n Optional('common_criteria_policy'): str,\n Optional('view'): str,\n Optional('type'): str,\n Optional('onetime'): bool,\n Optional('secret'): {\n Optional('type'): int,\n Optional('secret'): str,\n },\n },\n },\n}",
"schema": "{\n 'username': {\n Any('*'): {\n Optional('creation_time'): int,\n Optional('password'): {\n Optional('type'): int,\n Optional('password'): str,\n },\n Optional('privilege'): int,\n Optional('common_criteria_policy'): str,\n Optional('view'): str,\n Optional('type'): str,\n Optional('autocommand'): str,\n Optional('onetime'): bool,\n Optional('nopassword'): bool,\n Optional('secret'): {\n Optional('type'): int,\n Optional('secret'): str,\n },\n },\n },\n}",
"tokens": {
"os": "iosxe"
},
"uid": "show_running-config_aaa_username",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L2887"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L2892"
}
}
},
Expand All @@ -100741,7 +100765,7 @@
"os": "iosxe"
},
"uid": "show_running-config_all___sec_interface",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L2258"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L2261"
}
}
},
Expand All @@ -100757,7 +100781,7 @@
"os": "iosxe"
},
"uid": "show_running-config_all___section_^interface",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L1802"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L1805"
}
}
},
Expand All @@ -100773,7 +100797,7 @@
"os": "iosxe"
},
"uid": "show_running-config_all___section_class_class_map",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4858"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4859"
}
}
},
Expand Down Expand Up @@ -100821,7 +100845,7 @@
"os": "iosxe"
},
"uid": "show_running-config_flow_monitor",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L3059"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L3060"
}
}
},
Expand Down Expand Up @@ -100885,7 +100909,7 @@
"os": "iosxe"
},
"uid": "show_running-config_interface_interface",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L483"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L486"
},
"nxos": {
"class": "ShowRunningConfigInterface",
Expand Down Expand Up @@ -100913,7 +100937,7 @@
"os": "iosxe"
},
"uid": "show_running-config_mdns-sd",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L1907"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L1910"
}
}
},
Expand Down Expand Up @@ -100977,7 +101001,7 @@
"os": "iosxe"
},
"uid": "show_running-config_nve",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L3502"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L3503"
}
}
},
Expand All @@ -100993,7 +101017,7 @@
"os": "iosxe"
},
"uid": "show_running-config_vrf",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L5069"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L5070"
}
}
},
Expand Down Expand Up @@ -101185,7 +101209,7 @@
"os": "iosxe"
},
"uid": "show_running-config___section_^interface",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L483"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L486"
},
"nxos": {
"class": "ShowRunningConfigInterface",
Expand Down Expand Up @@ -101213,7 +101237,7 @@
"os": "iosxe"
},
"uid": "show_running-config___section_bgp",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4464"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4465"
}
}
},
Expand Down Expand Up @@ -101245,7 +101269,7 @@
"os": "iosxe"
},
"uid": "show_running-config___section_mac_address",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4806"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4807"
}
}
},
Expand Down Expand Up @@ -101277,7 +101301,7 @@
"os": "iosxe"
},
"uid": "show_running-config___section_route",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4379"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4380"
}
}
},
Expand All @@ -101293,7 +101317,7 @@
"os": "iosxe"
},
"uid": "show_running-config___section_vrf_definition",
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4716"
"url": "https://github.com/CiscoTestAutomation/genieparser/tree/master/src/genie/libs/parser/iosxe/show_run.py#L4717"
}
}
},
Expand Down
Loading