Skip to content

Commit 57d0404

Browse files
caribouHYmjbear
andauthored
Add new template for Fsas Si-R show vlan (#2031)
* Add template for Fasa Si-R show vlan * fix whitespace in total count Co-authored-by: Michael Bear <[email protected]> --------- Co-authored-by: Michael Bear <[email protected]>
1 parent 5b23970 commit 57d0404

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Value Required VLAN_ID (\d+)
2+
Value VLAN_NAME (\S+)
3+
Value List INTERFACES (\S+\s+\d+(\s+\d+)?)
4+
5+
Start
6+
^VID\s+Interface\s+Tag\s+Type\s+Description
7+
^---- -> VLANS
8+
^Total\s+Count
9+
^\s*$$
10+
^. -> Error
11+
12+
VLANS
13+
^\d+ -> Continue.Record
14+
^${VLAN_ID}\s+${INTERFACES}\s+\S+\s+\S+\s+${VLAN_NAME}\s*$$
15+
^\s+${INTERFACES}\s+\S+\s*$$
16+
^\s*$$ -> Start
17+
^. -> Error

ntc_templates/templates/index

+1
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ fortinet_execute_time.textfsm, .*, fortinet, exec[[ute]] ti[[me]]
637637
fsas_sir_show_system_information.textfsm, .*, fsas_sir, sh[[ow]] sys[[tem]] i[[nformation]]
638638
fsas_sir_show_ip_route.textfsm, .*, fsas_sir, sh[[ow]] ip ro[[ute]]
639639
fsas_sir_show_ether.textfsm, .*, fsas_sir, sh[[ow]] eth[[er]]
640+
fsas_sir_show_vlan.textfsm, .*, fsas_sir, sh[[ow]] vl[[an]]
640641

641642
hp_comware_display_lldp_neighbor-information_verbose.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] v[[erbose]]
642643
hp_comware_display_lldp_neighbor-information_list.textfsm, .*, hp_comware, di[[splay]] ll[[dp]] n[[eighbor-information]] l[[ist]]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
VID Interface Tag Type Description
3+
---- ------------------ ------------- -------- --------------------------------
4+
1 ether 1 1 untagged port default
5+
2 ether 2 1 untagged port lan2
6+
ether 2 2 untagged
7+
ether 2 3 untagged
8+
501 pseudo-ether 1 untagged port wwan
9+
1005 ether 2 1 dot1q-tagged port v1005
10+
11+
Total Count : 4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
parsed_sample:
3+
- interfaces:
4+
- "ether 1 1"
5+
vlan_id: "1"
6+
vlan_name: "default"
7+
- interfaces:
8+
- "ether 2 1"
9+
- "ether 2 2"
10+
- "ether 2 3"
11+
vlan_id: "2"
12+
vlan_name: "lan2"
13+
- interfaces:
14+
- "pseudo-ether 1"
15+
vlan_id: "501"
16+
vlan_name: "wwan"
17+
- interfaces:
18+
- "ether 2 1"
19+
vlan_id: "1005"
20+
vlan_name: "v1005"

0 commit comments

Comments
 (0)