Skip to content

Commit

Permalink
Updated template: Huawei VRP display interface added extra paramete…
Browse files Browse the repository at this point in the history
…rs (#1849)
  • Loading branch information
evilmonkey19 authored Sep 23, 2024
1 parent 1992f8f commit f68dfcc
Show file tree
Hide file tree
Showing 6 changed files with 567 additions and 342 deletions.
9 changes: 6 additions & 3 deletions ntc_templates/templates/huawei_vrp_display_interface.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ Value Required INTERFACE (\S*)
Value LINK_STATUS (.*)
Value PROTOCOL_STATUS (\S*|\S*\s+\(\w+\))
Value INTERFACE_DESCRIPTION (.*)
Value LINK_TYPE (\S+)
Value PORT_TYPE (\S*)
Value PVID (\d+)
Value TPID (\S+)
Value MTU (\d+)
Value HOLD_TIMER (\d+)
Value INTERNET_ADDRESS (\S*)
Value INTERNET_PROTOCOL (disabled|enabled)
Value HARDWARE_ADDRESS (\S{4}-\S{4}-\S{4})
Expand All @@ -24,9 +27,9 @@ Start
^Line\s+protocol\s+current\s+state\s+:\s+${PROTOCOL_STATUS}\s*$$
^Last\sline\sprotocol\sup\stime\s*:\s+(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}|-)\s*$$
^Description:${INTERFACE_DESCRIPTION}\s*$$
^${PORT_TYPE}\s+Port,\s*The\s+MTU\s+is\s+${MTU}
^${PORT_TYPE}\s+Port,\s*The\s+Maximum\s+Transmit\s+Unit\s+is\s+${MTU}
^${PORT_TYPE}\s+Port,(\s+PVID\s+:\s*${PVID},)?(\s*[^,]+,){1,}(\s+The\s+Maximum\s+(Frame\s+Length|Transmit\s+Unit)\s+is\s+${MTU})?
^${PORT_TYPE}\s+Port,\s*Link-type\s*:\s*${LINK_TYPE},\s*$$
^${PORT_TYPE}\s+Port,\s*The\s+(MTU|Maximum\s+Transmit\s+Unit)\s+is\s+${MTU}(,\s*Hold\s*timer\s*is\s*${HOLD_TIMER}\(sec\))?\s*$$
^${PORT_TYPE}\s+Port,(\s*PVID\s*:\s*${PVID},)?\s*TPID\s*:\s*${TPID},\s*The\s*Maximum\s*(Frame\s*Length|Transmit\s*Unit)\s*is\s*${MTU}\s*$$
^PVID\s*:\s+${PVID},(\s*[^,]+,){0,}\s+The\s+Maximum\s+Frame\s+Length\s+is\s+${MTU}
^Internet\s+Address\s+is\s+allocated\s+by\s+DHCP,\s+${INTERNET_ADDRESS}\s*$$
^Internet\s+Address\s+is\s+negotiated,\s+${INTERNET_ADDRESS}\s*$$
Expand Down
Loading

0 comments on commit f68dfcc

Please sign in to comment.