-
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.
New Template: cisco_nxos_show_vdc.textfsm (#591)
- Loading branch information
1 parent
0c1d3b1
commit 45ca1f0
Showing
4 changed files
with
43 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,14 @@ | ||
Value VDC_ID (\d+) | ||
Value VDC_NAME (\S+) | ||
Value STATE (\S+) | ||
Value MAC (\S+) | ||
Value TYPE (\S+) | ||
Value LC (\S+) | ||
|
||
Start | ||
^[Ss]witchwide\s+mode | ||
^vdc_id\s+vdc_name\s+state\s+mac\s+type\s+lc\s*$$ | ||
^-+ | ||
^\s*${VDC_ID}\s+${VDC_NAME}\s+${STATE}\s+${MAC}\s+${TYPE}\s+${LC} -> Record | ||
^\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
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,8 @@ | ||
|
||
Switchwide mode is m1 f1 m1xl f2 m2xl f2e f3 | ||
|
||
vdc_id vdc_name state mac type lc | ||
------ -------- ----- ---------- --------- ------ | ||
1 not1.barr1 active e4:c7:22:0c:67:c1 Admin None | ||
2 foo1.bar1.bazz1 active e4:c7:22:0c:67:c2 Ethernet f2e | ||
3 foo2.bar2.bazz2 active e4:c7:22:0c:67:c3 Ethernet f2e |
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,20 @@ | ||
--- | ||
parsed_sample: | ||
- vdc_id: "1" | ||
vdc_name: "not1.barr1" | ||
state: "active" | ||
mac: "e4:c7:22:0c:67:c1" | ||
type: "Admin" | ||
lc: "None" | ||
- vdc_id: "2" | ||
vdc_name: "foo1.bar1.bazz1" | ||
state: "active" | ||
mac: "e4:c7:22:0c:67:c2" | ||
type: "Ethernet" | ||
lc: "f2e" | ||
- vdc_id: "3" | ||
vdc_name: "foo2.bar2.bazz2" | ||
state: "active" | ||
mac: "e4:c7:22:0c:67:c3" | ||
type: "Ethernet" | ||
lc: "f2e" |