diff --git a/ntc_templates/templates/alcatel_aos_show_mac-address-table.textfsm b/ntc_templates/templates/alcatel_aos_show_mac-address-table.textfsm index 1dbe1ac735..08c1e95e39 100644 --- a/ntc_templates/templates/alcatel_aos_show_mac-address-table.textfsm +++ b/ntc_templates/templates/alcatel_aos_show_mac-address-table.textfsm @@ -10,7 +10,7 @@ Value INTERFACE (\S+) Start ^\s+Vlan\s+Mac\s+Address\s+Type\s+Protocol\s+Operation\s+Interface\s+$$ ^\s*-+\+ - ^\s*${ADDRESS_NOT_VALID}${VLAN_ID}\s+${MAC}\s+${TYPE}\s+(---|${PROTOCOL})\s+${OPERATION}\s+${INTERFACE}\s*$$ -> Record + ^\s*(?:${ADDRESS_NOT_VALID}\s*)?${VLAN_ID}\s+${MAC}\s+${TYPE}\s+(---|${PROTOCOL})\s+${OPERATION}\s+${INTERFACE}\s*$$ -> Record ^\s*Domain\s+Vlan\/SrvcId\[(ISId\/vnId|:ID)\]\s+Mac\s+Address\s+Type\s+Operation\s+Interface\s*$$ ^\s*${DOMAIN}\s+${VLAN_ID}\s+${MAC}\s+${TYPE}\s+${OPERATION}\s+${INTERFACE}\s*$$ -> Record ^\s*Total\s+number\s+of\s+Valid\s+MAC\s+addresses\s+above\s+=\s+\d+\s*$$ -> Record diff --git a/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.raw b/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.raw index 988117d215..1aca53db7c 100644 --- a/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.raw +++ b/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.raw @@ -2,9 +2,10 @@ Legend: Mac Address: * = address not valid Vlan Mac Address Type Protocol Operation Interface ------+-------------------+--------------+-----------+------------+----------- - *1 aa:aa:aa:aa:aa:aa permanent --- bridging 1/1 + * 1 aa:aa:aa:aa:aa:aa permanent --- bridging 1/1 2 bb:bb:bb:bb:bb:bb learned --- bridging 1/1 3 cc:cc:cc:cc:cc:cc learned --- bridging 1/1 - 4 dd:dd:dd:dd:dd:dd learned --- bridging 1/1 + 4 dd:dd:dd:dd:dd:dd learned --- bridging 1/1 + * 999 ee:ee:ee:ee:ee:ee permanent 0 bridging 1/11 Total number of Valid MAC addresses above = 4 diff --git a/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.yml b/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.yml index 366705705b..8b2db6c053 100644 --- a/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.yml +++ b/tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R6.yml @@ -32,3 +32,11 @@ parsed_sample: protocol: "" type: "learned" vlan_id: "4" + - address_not_valid: "*" + domain: "" + interface: "1/11" + mac: "ee:ee:ee:ee:ee:ee" + operation: "bridging" + protocol: "0" + type: "permanent" + vlan_id: "999"