From 16724e84db2c0cce22c0ab07a28e9bbd4545e8d2 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:36:57 -0400 Subject: [PATCH] Add Oneaccess templates (#1759) Co-authored-by: mwallraf Co-authored-by: Andrea Dainese --- ntc_templates/templates/index | 5 + ...ccess_oneos_show_product-info-area.textfsm | 21 ++++ ...eaccess_oneos_show_reboot_counters.textfsm | 26 ++++ .../oneaccess_oneos_show_route-map.textfsm | 13 ++ ...cess_oneos_show_running-config_aaa.textfsm | 13 ++ ...ess_oneos_show_running-config_bind.textfsm | 38 ++++++ .../show_product-info-area.oneos5.raw | 43 +++++++ .../show_product-info-area.oneos5.yml | 9 ++ .../show_product-info-area.oneos6.raw | 67 ++++++++++ .../show_product-info-area.oneos6.yml | 9 ++ .../show_reboot_counters.lbb4g.raw | 12 ++ .../show_reboot_counters.lbb4g.yml | 13 ++ .../show_reboot_counters.oneos5.raw | 14 +++ .../show_reboot_counters.oneos5.yml | 13 ++ .../show_reboot_counters.plug103.raw | 12 ++ .../show_reboot_counters.plug103.yml | 13 ++ .../show_reboot_counters.plug212.raw | 13 ++ .../show_reboot_counters.plug212.yml | 13 ++ .../show_reboot_counters.plug401.raw | 13 ++ .../show_reboot_counters.plug401.yml | 13 ++ .../show_route-map/show_route-map.oneos5.raw | 19 +++ .../show_route-map/show_route-map.oneos5.yml | 33 +++++ .../show_route-map/show_route-map.oneos6.raw | 17 +++ .../show_route-map/show_route-map.oneos6.yml | 31 +++++ .../show_running-config_aaa.oneos5.raw | 17 +++ .../show_running-config_aaa.oneos5.yml | 98 +++++++++++++++ .../show_running-config_aaa.oneos6.raw | 18 +++ .../show_running-config_aaa.oneos6.yml | 114 ++++++++++++++++++ .../show_running-config_bind.oneos5.raw | 18 +++ .../show_running-config_bind.oneos5.yml | 26 ++++ .../show_running-config_bind.oneos6.raw | 8 ++ .../show_running-config_bind.oneos6.yml | 16 +++ 32 files changed, 788 insertions(+) create mode 100644 ntc_templates/templates/oneaccess_oneos_show_product-info-area.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_reboot_counters.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_route-map.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_running-config_aaa.textfsm create mode 100644 ntc_templates/templates/oneaccess_oneos_show_running-config_bind.textfsm create mode 100644 tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.raw create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.yml create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.raw create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.yml create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.raw create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.yml create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.raw create mode 100644 tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.yml create mode 100644 tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.yml create mode 100644 tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.raw create mode 100644 tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.yml create mode 100644 tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.raw create mode 100644 tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.yml diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index 4a0cfbdb5f..fdff678727 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -745,10 +745,14 @@ oneaccess_oneos_show_voice_voip-call_any_all.textfsm, .*, oneaccess_oneos, sh[[o oneaccess_oneos_show_cellular-radio_context.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] context oneaccess_oneos_show_cellular-radio_network.textfsm, .*, oneaccess_oneos, sh[[ow]] cell[[ular-radio]] network oneaccess_oneos_show_ip_as-path-access-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip as-path-access-list +oneaccess_oneos_show_running-config_bind.textfsm, .*, oneaccess_oneos, sh[[ow]] run[[ning-config]] \|?bind oneaccess_oneos_show_ip_interface_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip int[[erface]] brief +oneaccess_oneos_show_running-config_aaa.textfsm, .*, oneaccess_oneos, sh[[ow]] run[[ning-config]] \|?aaa +oneaccess_oneos_show_product-info-area.textfsm, .*, oneaccess_oneos, sh[[ow]] product\-info\-area oneaccess_oneos_show_ip_access-lists.textfsm, .*, oneaccess_oneos, sh[[ow]] ip access-lists[[s]] oneaccess_oneos_show_isdn_led-status.textfsm, .*, oneaccess_oneos, sh[[ow]] isdn led-status oneaccess_oneos_show_isdn_status_all.textfsm, .*, oneaccess_oneos, sh[[ow]] isdn status all +oneaccess_oneos_show_reboot_counters.textfsm, .*, oneaccess_oneos, sh[[ow]] reboot counters oneaccess_oneos_cat_bsa_bsaboot.inf.textfsm, .*, oneaccess_oneos, cat (\/|)(BSA|bsa)(\/| )bsa(B|b)oot.inf oneaccess_oneos_show_ip_bgp_summary.textfsm, .*, oneaccess_oneos, sh[[ow]] ip bgp summary oneaccess_oneos_show_ip_prefix-list.textfsm, .*, oneaccess_oneos, sh[[ow]] ip prefix-list @@ -756,6 +760,7 @@ oneaccess_oneos_show_vrrp_interface.textfsm, .*, oneaccess_oneos, sh[[ow]] vrrp oneaccess_oneos_show_ip_vrf_brief.textfsm, .*, oneaccess_oneos, sh[[ow]] ip vrf brief oneaccess_oneos_show_isdn_active.textfsm, .*, oneaccess_oneos, sh[[ow]] isdn active oneaccess_oneos_show_interfaces.textfsm, .*, oneaccess_oneos, sh[[ow]] interface[[s]] +oneaccess_oneos_show_route-map.textfsm, .*, oneaccess_oneos, sh[[ow]] route-map oneaccess_oneos_show_helpers.textfsm, .*, oneaccess_oneos, sh[[ow]] helpers oneaccess_oneos_show_ip_ssh.textfsm, .*, oneaccess_oneos, sh[[ow]] ip ssh oneaccess_oneos_show_memory.textfsm, .*, oneaccess_oneos, sh[[ow]] memory diff --git a/ntc_templates/templates/oneaccess_oneos_show_product-info-area.textfsm b/ntc_templates/templates/oneaccess_oneos_show_product-info-area.textfsm new file mode 100644 index 0000000000..4649b95377 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_product-info-area.textfsm @@ -0,0 +1,21 @@ +Value MAC ([\w:]+) +Value MOTHERBOARD (\w.*\w) +Value MANUFACTURING_DATE ([^ ]+) +Value List SERIAL ([A-Z]\d+) +Value PRODUCT_NAME (\w.+\w) +Value COMMERCIAL_NAME (\w.+\w) + + +Start + ^\|\Wmac0\W+\|\W${MAC}\W+\|$$ + ^\|\WMotherboard\W[Tt]ype\W+\|\W${MOTHERBOARD}\W+\|$$ + ^\|\WManufacturing\W[Dd]ate\W+\|\W${MANUFACTURING_DATE}\W+\|$$ + ^\|\WSerial\W[Nn]umber\W+\|\W${SERIAL}\W+\|$$ + ^\|\WProduct\W[Nn]ame\W+\|\W${PRODUCT_NAME}\W+\|$$ + ^\|\WCommercial\W[Nn]ame\W+\|\W${COMMERCIAL_NAME}\W+\|$$ + ^\+-+(\+-+)?\+\s*$$ + ^\|\s+Product\s+Info\s+Area\s+\| + ^\|\s+Key\s+\|\s+Value\s+\|\s*$$ + ^\|\s+(mac\d+|Manufacturing\s+(File\s+Reference|Location)|Mreturn\d+|(Model|PCB|HW)\s+[Rr]evision|Last\s+Testing\s+Date|Sales\s+Code|Mib-\d+\s+system\s+\S+|Software\s+compatibility\s+code|SCAid)\s+\| + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_reboot_counters.textfsm b/ntc_templates/templates/oneaccess_oneos_show_reboot_counters.textfsm new file mode 100644 index 0000000000..817e789f0f --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_reboot_counters.textfsm @@ -0,0 +1,26 @@ +Value Required DEVICE (\S+) +Value SERIAL (\S+) +Value REBOOT_CAUSE (.*) +Value HARDWARE_RESET (\d+) +Value POWER_FAIL_DETECTION (\d+) +Value TOTAL_SOFTWARE_REBOOTS (\d+) +Value SYSTEM_DEFENSE (\d+) +Value GENERIC_SOFTWARE_REBOOT (\d+) +Value ADMIN_REQUESTED_REBOOT (\d+) +Value ADMIN_DELAYED_REBOOT (\d+) +Value SPURIOUS_POWER_FAILS (\d+) + +Start + ^Reboot\sstatus\sfor\sdevice\s${DEVICE}\sS\/N\s${SERIAL} + ^Last\sReboot\sCause\s+:\s+${REBOOT_CAUSE} + ^Reboot\sCounters + ^Reboot\son\shardware\sreset\s+:\s+${HARDWARE_RESET} + ^Power\sFail\sdetection\s+:\s+${POWER_FAIL_DETECTION} + ^Total\sSoftware\sRequested\sReboots\s+:\s+${TOTAL_SOFTWARE_REBOOTS} + ^\s*Generic\ssoftware\sreboot\srequest\s+:\s+${GENERIC_SOFTWARE_REBOOT} + ^\s*System\sdefense\s-\sreboot\safter\scrash\s+:\s+${SYSTEM_DEFENSE} + ^\s*Administrator\srequested\sreboot\s+:\s+${ADMIN_REQUESTED_REBOOT} + ^\s*Administrator\srequested\sdelayed\sreboot\s+:\s+${ADMIN_DELAYED_REBOOT} + ^Since\sstartup,\sspurious\sPower\sFail\shas\soccur+ed\s${SPURIOUS_POWER_FAILS}\stime + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_route-map.textfsm b/ntc_templates/templates/oneaccess_oneos_show_route-map.textfsm new file mode 100644 index 0000000000..e9c916a0d7 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_route-map.textfsm @@ -0,0 +1,13 @@ +Value Required NAME (\S+) +Value Required ACTION (\S+) +Value Required SEQUENCE (\d+) +Value List MATCH_CLAUSES (.+) +Value List SET_CLAUSES (.+) + +Start + ^route-map\s+${NAME}\s${ACTION}\s+${SEQUENCE}\s*$$ + ^\s+match\s+${MATCH_CLAUSES} + ^\s+set\s+${SET_CLAUSES} + ^exit -> Record + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_running-config_aaa.textfsm b/ntc_templates/templates/oneaccess_oneos_show_running-config_aaa.textfsm new file mode 100644 index 0000000000..9fab9d906d --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_running-config_aaa.textfsm @@ -0,0 +1,13 @@ +Value Filldown AAA_GROUP (\S+) +Value Required AAA_PROTOCOL (authentication|authorization|accounting) +Value AAA_COMMAND (\w+) +Value List AAA_CONFIG (.*) +Value Filldown,List AAA_SERVERS (\S+) + +Start + ^\s*aaa\s+group\s+server\s+tacacs\s+${AAA_GROUP} + ^\s+server\s+${AAA_SERVERS}\s*$$ + ^\s*aaa\s+${AAA_PROTOCOL}\s+${AAA_COMMAND}\s+${AAA_CONFIG}\s*$$ -> Record + ^exit + ^\s*$$ + ^. -> Error diff --git a/ntc_templates/templates/oneaccess_oneos_show_running-config_bind.textfsm b/ntc_templates/templates/oneaccess_oneos_show_running-config_bind.textfsm new file mode 100644 index 0000000000..9d4ecf0c08 --- /dev/null +++ b/ntc_templates/templates/oneaccess_oneos_show_running-config_bind.textfsm @@ -0,0 +1,38 @@ +Value Required PROTOCOL (ssh|telnet) +Value List INTERFACE (\S+.*\d+) +Value ACL (\S+) +Value List VRF (\S+) + +Start + ^bind\sssh\sacl\s${ACL} -> SSH + ^bind\sssh\s${INTERFACE}$$ -> SSH + ^bind\sssh\svrf\s${VRF} -> SSH + ^bind\stelnet\sacl\s${ACL} -> TELNET + ^bind\stelnet\s${INTERFACE} -> TELNET + ^bind\stelnet\svrf\s${VRF} -> TELNET + ^\s*$$ + ^. -> Error + +SSH + # at EOF or new protocol, start a record + # not all entries (ACL, VRF) may be present + ^bind\stelnet -> Continue.Record + ^bind\stelnet\sacl\s${ACL} -> Start + ^bind\stelnet\s${INTERFACE} -> Start + ^bind\stelnet\svrf\s${VRF} -> Start + ^bind\s${PROTOCOL}\svrf\s${VRF} + ^bind\s${PROTOCOL}\s${INTERFACE} + ^\s*$$ + ^. -> Error + +TELNET + # at EOF or new protocol, start a record + # not all entries (ACL, VRF) may be present + ^bind\sssh -> Continue.Record + ^bind\sssh\sacl\s${ACL} -> Start + ^bind\sssh\s${INTERFACE}$$ -> Start + ^bind\sssh\svrf\s${VRF} -> Start + ^bind\s${PROTOCOL}\svrf\s${VRF} + ^bind\s${PROTOCOL}\s${INTERFACE} + ^\s*$$ + ^. -> Error diff --git a/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.raw b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.raw new file mode 100644 index 0000000000..57d67ab889 --- /dev/null +++ b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.raw @@ -0,0 +1,43 @@ ++----------------------------------------------------------------+ +| Product Info Area | ++------------------------------+---------------------------------+ +| Key | Value | ++------------------------------+---------------------------------+ +| mac0 | 70:FC:8C:07:22:CC | ++------------------------------+---------------------------------+ +| mac1 | 70:FC:8C:0B:22:CC | ++------------------------------+---------------------------------+ +| mac2 | 70:FC:8C:0F:22:CC | ++------------------------------+---------------------------------+ +| mac3 | 70:FC:8C:13:22:CC | ++------------------------------+---------------------------------+ +| mac4 | 70:FC:8C:17:22:CC | ++------------------------------+---------------------------------+ +| mac5 | 70:FC:8C:1B:22:CC | ++------------------------------+---------------------------------+ +| mac6 | 70:FC:8C:1F:22:CC | ++------------------------------+---------------------------------+ +| mac7 | 70:FC:8C:23:22:CC | ++------------------------------+---------------------------------+ +| Manufacturing File Reference | 1000 00 N 0046230A00 AH | ++------------------------------+---------------------------------+ +| Motherboard Type | MB420SAVad0UFPE0BNW | ++------------------------------+---------------------------------+ +| Manufacturing Location | TOAB | ++------------------------------+---------------------------------+ +| Manufacturing Date | 18/01/2017 | ++------------------------------+---------------------------------+ +| Serial Number | T1703006230033175 | ++------------------------------+---------------------------------+ +| Product name | LBB_140 | ++------------------------------+---------------------------------+ +| Commercial name | LBB 140 | ++------------------------------+---------------------------------+ +| Mreturn1 | | ++------------------------------+---------------------------------+ +| Mreturn2 | | ++------------------------------+---------------------------------+ +| Mreturn3 | | ++------------------------------+---------------------------------+ +| Mreturn4 | | ++------------------------------+---------------------------------+ diff --git a/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.yml b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.yml new file mode 100644 index 0000000000..b680ba7617 --- /dev/null +++ b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos5.yml @@ -0,0 +1,9 @@ +--- +parsed_sample: + - mac: "70:FC:8C:07:22:CC" + motherboard: "MB420SAVad0UFPE0BNW" + manufacturing_date: "18/01/2017" + serial: + - "T1703006230033175" + product_name: "LBB_140" + commercial_name: "LBB 140" diff --git a/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.raw b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.raw new file mode 100644 index 0000000000..0ff205bc55 --- /dev/null +++ b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.raw @@ -0,0 +1,67 @@ ++----------------------------------------------------------------+ +| Product Info Area | ++------------------------------+---------------------------------+ +| Key | Value | ++------------------------------+---------------------------------+ +| mac0 | 70:FC:8C:12:B5:B9 | ++------------------------------+---------------------------------+ +| mac1 | 70:FC:8C:16:B5:B9 | ++------------------------------+---------------------------------+ +| mac2 | 70:FC:8C:1A:B5:B9 | ++------------------------------+---------------------------------+ +| mac3 | 70:FC:8C:1E:B5:B9 | ++------------------------------+---------------------------------+ +| mac4 | 70:FC:8C:22:B5:B9 | ++------------------------------+---------------------------------+ +| mac5 | 70:FC:8C:26:B5:B9 | ++------------------------------+---------------------------------+ +| mac6 | 70:FC:8C:2A:B5:B9 | ++------------------------------+---------------------------------+ +| mac7 | 70:FC:8C:2E:B5:B9 | ++------------------------------+---------------------------------+ +| mac8 | 70:FC:8C:12:B5:BA | ++------------------------------+---------------------------------+ +| mac9 | 70:FC:8C:16:B5:BA | ++------------------------------+---------------------------------+ +| mac10 | 70:FC:8C:1A:B5:BA | ++------------------------------+---------------------------------+ +| mac11 | 70:FC:8C:1E:B5:BA | ++------------------------------+---------------------------------+ +| mac12 | 70:FC:8C:22:B5:BA | ++------------------------------+---------------------------------+ +| mac13 | 70:FC:8C:26:B5:BA | ++------------------------------+---------------------------------+ +| mac14 | 70:FC:8C:2A:B5:BA | ++------------------------------+---------------------------------+ +| mac15 | 70:FC:8C:2E:B5:BA | ++------------------------------+---------------------------------+ +| Model revision | 1.0 | ++------------------------------+---------------------------------+ +| Manufacturing File Reference | 48554 | ++------------------------------+---------------------------------+ +| Motherboard Type | MB520 AV2aF5PWnac/a | ++------------------------------+---------------------------------+ +| PCB Revision | B | ++------------------------------+---------------------------------+ +| HW Revision | A | ++------------------------------+---------------------------------+ +| Manufacturing Location | TOAB | ++------------------------------+---------------------------------+ +| Manufacturing Date | 2021-W21 | ++------------------------------+---------------------------------+ +| Last Testing Date | 2021-06-07 | ++------------------------------+---------------------------------+ +| Serial Number | T2121008554075089 | ++------------------------------+---------------------------------+ +| Product Name | LBB_150 | ++------------------------------+---------------------------------+ +| Commercial Name | LBB 150 | ++------------------------------+---------------------------------+ +| Sales Code | 82131 | ++------------------------------+---------------------------------+ +| Mib-2 system sysObjectID | 150 | ++------------------------------+---------------------------------+ +| Software compatibility code | 0x1E | ++------------------------------+---------------------------------+ +| SCAid | LBB15X | ++------------------------------+---------------------------------+ diff --git a/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.yml b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.yml new file mode 100644 index 0000000000..a2eff3b32f --- /dev/null +++ b/tests/oneaccess_oneos/show_product-info-area/show_product-info-area.oneos6.yml @@ -0,0 +1,9 @@ +--- +parsed_sample: + - mac: "70:FC:8C:12:B5:B9" + motherboard: "MB520 AV2aF5PWnac/a" + manufacturing_date: "2021-W21" + serial: + - "T2121008554075089" + product_name: "LBB_150" + commercial_name: "LBB 150" diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.raw b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.raw new file mode 100644 index 0000000000..709bba28ac --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.raw @@ -0,0 +1,12 @@ + + +Reboot status for device LBB_154 S/N T2047008177055804 + +Last Reboot Cause : Software requested / System defense - reboot after crash + +Reboot Counters : +Reboot on hardware reset : 0 +Power Fail detection : 9 +Total Software Requested Reboots : 7 + System defense - reboot after crash : 6 + Administrator requested delayed reboot : 1 diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.yml b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.yml new file mode 100644 index 0000000000..2de2ca0a8b --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.lbb4g.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - device: "LBB_154" + serial: "T2047008177055804" + reboot_cause: "Software requested / System defense - reboot after crash" + hardware_reset: "0" + power_fail_detection: "9" + total_software_reboots: "7" + system_defense: "6" + generic_software_reboot: "" + admin_requested_reboot: "" + admin_delayed_reboot: "1" + spurious_power_fails: "" diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.raw b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.raw new file mode 100644 index 0000000000..0596347538 --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.raw @@ -0,0 +1,14 @@ + +Reboot status for device MB420SAVad0UFPE0BNW S/N T1703006230033175 + +Last Reboot Cause : Power Fail detection + +Reboot Counters : +Reboot on hardware reset : 0 +Power Fail detection : 33 +Total Software Requested Reboots : 21 + System defense - reboot after crash : 4 + Administrator requested reboot : 15 + Administrator requested delayed reboot : 2 + +Since startup, spurious Power Fail has occured 0 time(s) diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.yml b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.yml new file mode 100644 index 0000000000..dd24edad7e --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.oneos5.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - device: "MB420SAVad0UFPE0BNW" + serial: "T1703006230033175" + reboot_cause: "Power Fail detection" + hardware_reset: "0" + power_fail_detection: "33" + total_software_reboots: "21" + system_defense: "4" + generic_software_reboot: "" + admin_requested_reboot: "15" + admin_delayed_reboot: "2" + spurious_power_fails: "0" diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.raw b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.raw new file mode 100644 index 0000000000..f4616e0350 --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.raw @@ -0,0 +1,12 @@ + +Reboot status for device PBXPLUG_103 S/N T2137008344020891 + +Last Reboot Cause : Generic software reboot request + +Reboot Counters : +Reboot on hardware reset : 0 +Power Fail detection : 7 +Total Software Requested Reboots : 21 + Generic software reboot request : 16 + System defense - reboot after crash : 1 + Administrator requested reboot : 4 diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.yml b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.yml new file mode 100644 index 0000000000..2afad18cee --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug103.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - device: "PBXPLUG_103" + serial: "T2137008344020891" + reboot_cause: "Generic software reboot request" + hardware_reset: "0" + power_fail_detection: "7" + total_software_reboots: "21" + system_defense: "1" + generic_software_reboot: "16" + admin_requested_reboot: "4" + admin_delayed_reboot: "" + spurious_power_fails: "" diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.raw b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.raw new file mode 100644 index 0000000000..0e856a4f29 --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.raw @@ -0,0 +1,13 @@ + +Reboot status for device MBPBX30NT2BLUZ S/N T1938004830030157 + +Last Reboot Cause : Unknown reboot cause / Power On Reset (Power Fail or External Watchdog) + +Reboot Counters : +Reboot on hardware reset : 6 +Total Software Requested Reboots : 41 + System defense - reboot after crash : 18 + Administrator requested reboot : 16 + Administrator requested delayed reboot : 7 + +Since startup, spurious Power Fail has occured 0 time(s) diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.yml b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.yml new file mode 100644 index 0000000000..d3b70ef4ad --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug212.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - device: "MBPBX30NT2BLUZ" + serial: "T1938004830030157" + reboot_cause: "Unknown reboot cause / Power On Reset (Power Fail or External Watchdog)" + hardware_reset: "6" + power_fail_detection: "" + total_software_reboots: "41" + system_defense: "18" + generic_software_reboot: "" + admin_requested_reboot: "16" + admin_delayed_reboot: "7" + spurious_power_fails: "0" diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.raw b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.raw new file mode 100644 index 0000000000..f787b6d61e --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.raw @@ -0,0 +1,13 @@ + +Reboot status for device PBXPLUG_401 S/N T1817008168000443 + +Last Reboot Cause : Generic software reboot request + +Reboot Counters : +Reboot on hardware reset : 0 +Power Fail detection : 6 +Total Software Requested Reboots : 83 + Generic software reboot request : 59 + System defense - reboot after crash : 5 + Administrator requested reboot : 16 + Administrator requested delayed reboot : 3 diff --git a/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.yml b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.yml new file mode 100644 index 0000000000..57f5073421 --- /dev/null +++ b/tests/oneaccess_oneos/show_reboot_counters/show_reboot_counters.plug401.yml @@ -0,0 +1,13 @@ +--- +parsed_sample: + - device: "PBXPLUG_401" + serial: "T1817008168000443" + reboot_cause: "Generic software reboot request" + hardware_reset: "0" + power_fail_detection: "6" + total_software_reboots: "83" + system_defense: "5" + generic_software_reboot: "59" + admin_requested_reboot: "16" + admin_delayed_reboot: "3" + spurious_power_fails: "" diff --git a/tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.raw b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.raw new file mode 100644 index 0000000000..884544c6ee --- /dev/null +++ b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.raw @@ -0,0 +1,19 @@ +route-map BGP-MAP-OUT permit 10 + match as-path 102 + set origin igp + set metric 50 +exit +route-map BGP_SECONDARY_OUT permit 10 + set as-path prepend 65000 65000 65000 + set origin igp + set local-preference 50 + set metric 100 +exit +route-map CONNECTED-BGP deny 5 + match ip address prefix-list DENY-BGP +exit +route-map CONNECTED-BGP permit 10 + set origin igp + set local-preference 100 + set metric 50 +exit diff --git a/tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.yml b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.yml new file mode 100644 index 0000000000..6232e0202c --- /dev/null +++ b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos5.yml @@ -0,0 +1,33 @@ +--- +parsed_sample: + - name: "BGP-MAP-OUT" + action: "permit" + sequence: "10" + match_clauses: + - "as-path 102" + set_clauses: + - "origin igp" + - "metric 50" + - name: "BGP_SECONDARY_OUT" + action: "permit" + sequence: "10" + match_clauses: [] + set_clauses: + - "as-path prepend 65000 65000 65000" + - "origin igp" + - "local-preference 50" + - "metric 100" + - name: "CONNECTED-BGP" + action: "deny" + sequence: "5" + match_clauses: + - "ip address prefix-list DENY-BGP" + set_clauses: [] + - name: "CONNECTED-BGP" + action: "permit" + sequence: "10" + match_clauses: [] + set_clauses: + - "origin igp" + - "local-preference 100" + - "metric 50" diff --git a/tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.raw b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.raw new file mode 100644 index 0000000000..6dc03d001f --- /dev/null +++ b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.raw @@ -0,0 +1,17 @@ +route-map ADVERTISE-LOCAL-ONLY permit 10 + match as-path 102 +exit +route-map BGP-MAP-OUT permit 10 + match as-path 102 + set as-path prepend 65000 65000 65000 + set origin igp + set metric 100 +exit +route-map CONNECTED-BGP deny 5 + match ip address prefix-list DENY-BGP +exit +route-map CONNECTED-BGP permit 10 + set origin igp + set local-preference 50 + set metric 100 +exit diff --git a/tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.yml b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.yml new file mode 100644 index 0000000000..3f607a611f --- /dev/null +++ b/tests/oneaccess_oneos/show_route-map/show_route-map.oneos6.yml @@ -0,0 +1,31 @@ +--- +parsed_sample: + - name: "ADVERTISE-LOCAL-ONLY" + action: "permit" + sequence: "10" + match_clauses: + - "as-path 102" + set_clauses: [] + - name: "BGP-MAP-OUT" + action: "permit" + sequence: "10" + match_clauses: + - "as-path 102" + set_clauses: + - "as-path prepend 65000 65000 65000" + - "origin igp" + - "metric 100" + - name: "CONNECTED-BGP" + action: "deny" + sequence: "5" + match_clauses: + - "ip address prefix-list DENY-BGP" + set_clauses: [] + - name: "CONNECTED-BGP" + action: "permit" + sequence: "10" + match_clauses: [] + set_clauses: + - "origin igp" + - "local-preference 50" + - "metric 100" diff --git a/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.raw b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.raw new file mode 100644 index 0000000000..20dd4e66a3 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.raw @@ -0,0 +1,17 @@ +aaa group server tacacs TACGROUP +aaa authentication login default TACGROUP +aaa authentication login console TACGROUP +aaa authentication enable default TACGROUP +aaa authentication enable console TACGROUP +aaa authorization command 15 TACGROUP none +aaa authorization command 7 TACGROUP none +aaa authorization command 1 TACGROUP none +aaa authorization command 0 TACGROUP none +aaa authorization network group TACGROUP +aaa accounting exec default start-stop group TACGROUP +aaa accounting commands 15 default stop-only group TACGROUP +aaa accounting system default start-stop group TACGROUP +aaa accounting commands 7 default stop-only group TACGROUP +aaa accounting commands 1 default stop-only group TACGROUP +aaa accounting commands 0 default stop-only group TACGROUP +aaa authentication banner sequence 1 *-TACACS SERVER UNAVAILABLE-* diff --git a/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.yml b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.yml new file mode 100644 index 0000000000..bc21b98b62 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos5.yml @@ -0,0 +1,98 @@ +--- +parsed_sample: + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authentication" + aaa_command: "login" + aaa_config: + - "default TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authentication" + aaa_command: "login" + aaa_config: + - "console TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authentication" + aaa_command: "enable" + aaa_config: + - "default TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authentication" + aaa_command: "enable" + aaa_config: + - "console TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "15 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "7 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "1 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "0 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authorization" + aaa_command: "network" + aaa_config: + - "group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "accounting" + aaa_command: "exec" + aaa_config: + - "default start-stop group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "15 default stop-only group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "accounting" + aaa_command: "system" + aaa_config: + - "default start-stop group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "7 default stop-only group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "1 default stop-only group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "0 default stop-only group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: [] + aaa_protocol: "authentication" + aaa_command: "banner" + aaa_config: + - "sequence 1 *-TACACS SERVER UNAVAILABLE-*" diff --git a/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.raw b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.raw new file mode 100644 index 0000000000..12b1ef4181 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.raw @@ -0,0 +1,18 @@ +aaa group server tacacs TACGROUP + server 1.2.3.4 + server 11.22.33.44 +exit +aaa authentication login default TACGROUP +aaa authentication login console TACGROUP +aaa authentication banner sequence 1 *-TACACS SERVER UNAVAILABLE-* +aaa authentication enable default TACGROUP +aaa authentication enable console TACGROUP +aaa authorization network group TACGROUP +aaa authorization command 1 TACGROUP none +aaa authorization command 7 TACGROUP none +aaa authorization command 15 TACGROUP none +aaa accounting exec default start-stop group TACGROUP +aaa accounting system default start-stop group TACGROUP +aaa accounting commands 1 default stop-only group TACGROUP +aaa accounting commands 7 default stop-only group TACGROUP +aaa accounting commands 15 default stop-only group TACGROUP diff --git a/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.yml b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.yml new file mode 100644 index 0000000000..045b8fbf95 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_aaa/show_running-config_aaa.oneos6.yml @@ -0,0 +1,114 @@ +--- +parsed_sample: + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authentication" + aaa_command: "login" + aaa_config: + - "default TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authentication" + aaa_command: "login" + aaa_config: + - "console TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authentication" + aaa_command: "banner" + aaa_config: + - "sequence 1 *-TACACS SERVER UNAVAILABLE-*" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authentication" + aaa_command: "enable" + aaa_config: + - "default TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authentication" + aaa_command: "enable" + aaa_config: + - "console TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authorization" + aaa_command: "network" + aaa_config: + - "group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "1 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "7 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "authorization" + aaa_command: "command" + aaa_config: + - "15 TACGROUP none" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "accounting" + aaa_command: "exec" + aaa_config: + - "default start-stop group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "accounting" + aaa_command: "system" + aaa_config: + - "default start-stop group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "1 default stop-only group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "7 default stop-only group TACGROUP" + - aaa_group: "TACGROUP" + aaa_servers: + - "1.2.3.4" + - "11.22.33.44" + aaa_protocol: "accounting" + aaa_command: "commands" + aaa_config: + - "15 default stop-only group TACGROUP" diff --git a/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.raw b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.raw new file mode 100644 index 0000000000..db2b964095 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.raw @@ -0,0 +1,18 @@ +bind ssh acl MANAGEMENT_IN_SSH +bind ssh loopback 1 +bind ssh loopback 21 +bind ssh loopback 91 +bind ssh tunnel 21 +bind ssh tunnel 91 +bind ssh virtual-ethernet 1 +bind ssh vrf UNTRUST-SSH +bind ssh vrf default-router +bind telnet acl MANAGEMENT_IN_TELNET +bind telnet loopback 1 +bind telnet loopback 21 +bind telnet loopback 91 +bind telnet tunnel 21 +bind telnet tunnel 91 +bind telnet virtual-ethernet 1 +bind telnet vrf UNTRUST-TELNET +bind telnet vrf default-router diff --git a/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.yml b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.yml new file mode 100644 index 0000000000..8d638cebc3 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos5.yml @@ -0,0 +1,26 @@ +--- +parsed_sample: + - protocol: "ssh" + interface: + - "loopback 1" + - "loopback 21" + - "loopback 91" + - "tunnel 21" + - "tunnel 91" + - "virtual-ethernet 1" + acl: "MANAGEMENT_IN_SSH" + vrf: + - "UNTRUST-SSH" + - "default-router" + - protocol: "telnet" + interface: + - "loopback 1" + - "loopback 21" + - "loopback 91" + - "tunnel 21" + - "tunnel 91" + - "virtual-ethernet 1" + acl: "MANAGEMENT_IN_TELNET" + vrf: + - "UNTRUST-TELNET" + - "default-router" diff --git a/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.raw b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.raw new file mode 100644 index 0000000000..513008fd8a --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.raw @@ -0,0 +1,8 @@ +bind ssh acl MANAGEMENT_IN +bind ssh gigabitethernet 1/0.300 +bind ssh loopback 1 +bind ssh vrf default-router +bind telnet acl MANAGEMENT_IN +bind telnet gigabitethernet 1/0.300 +bind telnet loopback 1 +bind telnet vrf default-router diff --git a/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.yml b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.yml new file mode 100644 index 0000000000..6e7de77472 --- /dev/null +++ b/tests/oneaccess_oneos/show_running-config_bind/show_running-config_bind.oneos6.yml @@ -0,0 +1,16 @@ +--- +parsed_sample: + - protocol: "ssh" + interface: + - "gigabitethernet 1/0.300" + - "loopback 1" + acl: "MANAGEMENT_IN" + vrf: + - "default-router" + - protocol: "telnet" + interface: + - "gigabitethernet 1/0.300" + - "loopback 1" + acl: "MANAGEMENT_IN" + vrf: + - "default-router"