forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Template: cisco_nxos_show_license_usage.textfsm (networktocode#759)
- Loading branch information
1 parent
fdd5328
commit 885ea18
Showing
4 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Value FEATURE (\S+) | ||
Value INSTALLED (Yes|No) | ||
Value LICENSE_COUNT (\d+|-) | ||
Value STATUS (Unused|In\s+use) | ||
Value EXPIRY_DATE (\S+|\s*?) | ||
Value COMMENTS (.+) | ||
|
||
Start | ||
^Feature\s+Ins\s+Lic\s+Status\s+Expiry\s+Date\s+Comments -> Begin | ||
^\s*$$ | ||
^. -> Error | ||
|
||
Begin | ||
^\s+Count | ||
^${FEATURE}\s+${INSTALLED}\s+${LICENSE_COUNT}\s+${STATUS}\s+?${EXPIRY_DATE}\s+${COMMENTS}\s*$$ -> Record | ||
^-+\s*$$ | ||
^\s*$$ | ||
^. -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/cisco_nxos/show_license_usage/cisco_nxos_show_license_usage.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
Feature Ins Lic Status Expiry Date Comments | ||
Count | ||
-------------------------------------------------------------------------------- | ||
MPLS_PKG No - Unused Grace 10D 1H | ||
STORAGE-ENT No - Unused Grace 20D 6H | ||
VDC_LICENSES No 0 Unused - | ||
ENTERPRISE_PKG No - Unused - | ||
FCOE-N7K-F132XP No 0 Unused - | ||
FCOE-N7K-F248XP No 0 Unused - | ||
ENHANCED_LAYER2_PKG No - Unused Grace 20D 6H | ||
SCALABLE_SERVICES_PKG No - Unused - | ||
TRANSPORT_SERVICES_PKG Yes - Unused Never - | ||
LAN_ADVANCED_SERVICES_PKG Yes - Unused Never - | ||
LAN_ENTERPRISE_SERVICES_PKG Yes - In use Never - | ||
-------------------------------------------------------------------------------- |
68 changes: 68 additions & 0 deletions
68
tests/cisco_nxos/show_license_usage/cisco_nxos_show_license_usage.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
parsed_sample: | ||
- feature: "MPLS_PKG" | ||
installed: "No" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "Grace 10D 1H" | ||
- feature: "STORAGE-ENT" | ||
installed: "No" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "Grace 20D 6H" | ||
- feature: "VDC_LICENSES" | ||
installed: "No" | ||
license_count: "0" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "-" | ||
- feature: "ENTERPRISE_PKG" | ||
installed: "No" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "-" | ||
- feature: "FCOE-N7K-F132XP" | ||
installed: "No" | ||
license_count: "0" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "-" | ||
- feature: "FCOE-N7K-F248XP" | ||
installed: "No" | ||
license_count: "0" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "-" | ||
- feature: "ENHANCED_LAYER2_PKG" | ||
installed: "No" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "Grace 20D 6H" | ||
- feature: "SCALABLE_SERVICES_PKG" | ||
installed: "No" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "" | ||
comments: "-" | ||
- feature: "TRANSPORT_SERVICES_PKG" | ||
installed: "Yes" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "Never" | ||
comments: "-" | ||
- feature: "LAN_ADVANCED_SERVICES_PKG" | ||
installed: "Yes" | ||
license_count: "-" | ||
status: "Unused" | ||
expiry_date: "Never" | ||
comments: "-" | ||
- feature: "LAN_ENTERPRISE_SERVICES_PKG" | ||
installed: "Yes" | ||
license_count: "-" | ||
status: "In use" | ||
expiry_date: "Never" | ||
comments: "-" |