Skip to content

Commit

Permalink
Adding new template for Alcatel aos: show system
Browse files Browse the repository at this point in the history
 Co-authored-by: Michael Bear <38406045+mjbear@users.noreply.github.com> (#1900)
  • Loading branch information
evilmonkey19 authored Nov 25, 2024
1 parent b4a11f2 commit 6697a54
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ntc_templates/templates/alcatel_aos_show_system.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Value DESCRIPTION (.+)
Value OBJECT_ID (\S+)
Value UPTIME (.+)
Value CONTACT (.+)
Value NAME (\S+)
Value LOCATION (.+)
Value SERVICES (\d+)
Value DATETIME ((\S+\s*)+)
Value AVAILABLE (\d+)
Value COMMENTS (.+)

Start
^\s*System:\s*$$
^\s*Description:\s*${DESCRIPTION},$$
^\s*Object\s*ID:\s*${OBJECT_ID},$$
^\s*Up\s*Time:\s*${UPTIME},$$
^\s*Contact:\s*${CONTACT},$$
^\s*Name:\s*${NAME},$$
^\s*Location:\s*${LOCATION},$$
^\s*Services:\s*${SERVICES},$$
^\s*Date\s*&\s*Time:\s*${DATETIME}$$
^\s*Flash\s*Space:\s*$$
^\s*Primary\s*CMM:$$
^\s*Available\s*\(bytes\):\s*${AVAILABLE},$$
^\s*Comments\s*:\s*${COMMENTS}$$
^\s*$$
^.*$$ -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Template, Hostname, Platform, Command

alcatel_aos_show_vlan_port.textfsm, .*, alcatel_aos, sh[[ow]] vl[[an]] (p[[ort]]|m[[embers]])
alcatel_aos_show_chassis.textfsm, .*, alcatel_aos, sh[[ow]] ch[[assis]]
alcatel_aos_show_system.textfsm, .*, alcatel_aos, sh[[ow]] sy[[stem]]
alcatel_aos_show_vlan.textfsm, .*, alcatel_aos, show vlan

alcatel_sros_show_router_bgp_routes_vpn-ipv4.textfsm, .*, alcatel_sros, sh[[ow]] router bgp rou[[tes]] vpn-ipv4
Expand Down
14 changes: 14 additions & 0 deletions tests/alcatel_aos/show_system/alcatel_aos_show_system_1.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
System:
Description: Alcatel-Lucent Enterprise OS6350-P24 6.7.1.001.R01 GA, January 01, 2000.,
Object ID: 0.0.0.0.0.0.0000.000.0.0.0.0.00.0.0,
Up Time: 22 days 2 hours 20 minutes and 20 seconds,
Contact: Alcatel-Lucent Enterprise, https://www.al-enterprise.com,
Name: SWA_0001,
Location: Espoo - Finland,
Services: 2,
Date & Time: MON JAN 01 2001 00:00:00 (CET)

Flash Space:
Primary CMM:
Available (bytes): 39243776,
Comments : None
13 changes: 13 additions & 0 deletions tests/alcatel_aos/show_system/alcatel_aos_show_system_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
parsed_sample:
- available: "39243776"
comments: "None"
contact: "Alcatel-Lucent Enterprise, https://www.al-enterprise.com"
datetime: "MON JAN 01 2001 00:00:00 (CET)"
description: "Alcatel-Lucent Enterprise OS6350-P24 6.7.1.001.R01 GA, January 01,
2000."
location: "Espoo - Finland"
name: "SWA_0001"
object_id: "0.0.0.0.0.0.0000.000.0.0.0.0.00.0.0"
services: "2"
uptime: "22 days 2 hours 20 minutes and 20 seconds"
13 changes: 13 additions & 0 deletions tests/alcatel_aos/show_system/alcatel_aos_show_system_2.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
System:
Description: Alcatel-Lucent Enterprise OS6360-PH24 8.0.00.R01 GA, January 01, 2000.,
Object ID: 0.0.0.0.0.0.0000.000.0.0.0.0.00.0.0,
Up Time: 22 days 22 hours 22 minutes and 22 seconds,
Contact: Alcatel-Lucent Enterprise, https://www.al-enterprise.com,
Name: SWA_0001,
Location: Espoo - Finland,
Services: 2,
Date & Time: MON DEC 24 2025 01:02:03 (CET)
Flash Space:
Primary CMM:
Available (bytes): 501198848,
Comments : None
13 changes: 13 additions & 0 deletions tests/alcatel_aos/show_system/alcatel_aos_show_system_2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
parsed_sample:
- available: "501198848"
comments: "None"
contact: "Alcatel-Lucent Enterprise, https://www.al-enterprise.com"
datetime: "MON DEC 24 2025 01:02:03 (CET)"
description: "Alcatel-Lucent Enterprise OS6360-PH24 8.0.00.R01 GA, January 01,
2000."
location: "Espoo - Finland"
name: "SWA_0001"
object_id: "0.0.0.0.0.0.0000.000.0.0.0.0.00.0.0"
services: "2"
uptime: "22 days 22 hours 22 minutes and 22 seconds"

0 comments on commit 6697a54

Please sign in to comment.