Skip to content

Commit

Permalink
huawei_vrp_display_vlan (networktocode#1802)
Browse files Browse the repository at this point in the history
Co-authored-by: Niklas Höglund (hognik) <[email protected]>
  • Loading branch information
hognik and Niklas Höglund (hognik) authored Aug 2, 2024
1 parent e95dd2d commit 63d90c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ntc_templates/templates/huawei_vrp_display_vlan.textfsm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Value Filldown VLAN_ID (\d+)
Value Filldown VLAN_TYPE (\w+)
Value Filldown MODE ((TG|UT))
Value INTERFACE ([A-Z0-9/]+)
Value INTERFACE ([A-Z0-9/th\-runk]+)
Value VLAN_NAME (.+)
Value VLAN_STATUS (\S+)

Expand Down
2 changes: 2 additions & 0 deletions tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.raw
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ VID Type Ports
XGE0/0/17(D) XGE0/0/18(D)
TG:40GE0/0/1(D) 40GE0/0/2(D) 40GE0/0/3(D) 40GE0/0/4(D)
40GE0/0/5(D) 40GE0/0/6(D)
1555 common TG:Eth-Trunk0(U)

VID Status Property MAC-LRN Statistics Description
--------------------------------------------------------------------------------
1 enable default enable disable VLAN 0001
10 enable default enable disable VLAN 0010
20 enable default enable disable VLAN 0020
30 enable default enable disable VLAN 0030
1555 enable multicastVLAN enable disable VLAN 1555
12 changes: 12 additions & 0 deletions tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ parsed_sample:
vlan_name: ""
vlan_status: ""
vlan_type: "common"
- interface: "Eth-Trunk0"
mode: "TG"
vlan_id: "1555"
vlan_name: ""
vlan_status: ""
vlan_type: "common"
- interface: ""
mode: ""
vlan_id: "1"
Expand All @@ -240,3 +246,9 @@ parsed_sample:
vlan_name: "VLAN 0030"
vlan_status: "enable"
vlan_type: ""
- interface: ""
mode: ""
vlan_id: "1555"
vlan_name: "VLAN 1555"
vlan_status: "enable"
vlan_type: ""

0 comments on commit 63d90c5

Please sign in to comment.