diff --git a/ntc_templates/templates/huawei_vrp_display_vlan.textfsm b/ntc_templates/templates/huawei_vrp_display_vlan.textfsm index 983c8b9b83..a7b2be98a3 100644 --- a/ntc_templates/templates/huawei_vrp_display_vlan.textfsm +++ b/ntc_templates/templates/huawei_vrp_display_vlan.textfsm @@ -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+) diff --git a/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.raw b/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.raw index 61f44debd7..5f369b2262 100644 --- a/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.raw +++ b/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.raw @@ -19,6 +19,7 @@ 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 -------------------------------------------------------------------------------- @@ -26,3 +27,4 @@ VID Status Property MAC-LRN Statistics Description 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 diff --git a/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.yml b/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.yml index 3c64824b80..1d8d031c50 100644 --- a/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.yml +++ b/tests/huawei_vrp/display_vlan/huawei_vrp_display_vlan.yml @@ -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" @@ -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: ""