-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add show service service-using (#1913)
Co-authored-by: Michael Bear <[email protected]>
- Loading branch information
1 parent
649998f
commit 5ee49d4
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/alcatel_sros_show_service_service-using.textfsm
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,15 @@ | ||
Value SERVICE_ID (\d+) | ||
Value TYPE (\S+) | ||
Value ADMIN_STATUS (\S+) | ||
Value OPERATIONAL_STATUS (\S+) | ||
Value CUSTOMER_ID (\d+) | ||
Value SERVICE_NAME (\S+) | ||
|
||
Start | ||
^=+\s*$$ | ||
^Services.*$$ | ||
^ServiceId\s+Type\s+Adm\s+Opr\s+CustomerId\s+Service\s+Name | ||
^\s*${SERVICE_ID}\s+${TYPE}\s+${ADMIN_STATUS}\s+${OPERATIONAL_STATUS}\s+${CUSTOMER_ID}\s+${SERVICE_NAME}\s*$$ -> Record | ||
^Matching\s+Services\s+:\s+\d+\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
14 changes: 14 additions & 0 deletions
14
tests/alcatel_sros/show_service_service-using/show_service_service-using.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,14 @@ | ||
|
||
=============================================================================== | ||
Services [vpls] Customer 4020 | ||
=============================================================================== | ||
ServiceId Type Adm Opr CustomerId Service Name | ||
------------------------------------------------------------------------------- | ||
24728 VPLS Up Down 4020 testservice1 | ||
24729 VPLS Up Up 4020 test-service2 | ||
24730 VPLS Up Down 4020 testservice3 | ||
24731 VPLS Up Down 4020 testservice5 | ||
------------------------------------------------------------------------------- | ||
Matching Services : 4 | ||
------------------------------------------------------------------------------- | ||
=============================================================================== |
26 changes: 26 additions & 0 deletions
26
tests/alcatel_sros/show_service_service-using/show_service_service-using.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,26 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "Up" | ||
customer_id: "4020" | ||
operational_status: "Down" | ||
service_id: "24728" | ||
service_name: "testservice1" | ||
type: "VPLS" | ||
- admin_status: "Up" | ||
customer_id: "4020" | ||
operational_status: "Up" | ||
service_id: "24729" | ||
service_name: "test-service2" | ||
type: "VPLS" | ||
- admin_status: "Up" | ||
customer_id: "4020" | ||
operational_status: "Down" | ||
service_id: "24730" | ||
service_name: "testservice3" | ||
type: "VPLS" | ||
- admin_status: "Up" | ||
customer_id: "4020" | ||
operational_status: "Down" | ||
service_id: "24731" | ||
service_name: "testservice5" | ||
type: "VPLS" |