Debian Codegraph @

ntc_templates/templates/cisco_nxos_show_interface_description.textfsm

raw
1 Value PORT (\S+)
2 Value TYPE (\S+)
3 Value SPEED (\d+G?)
4 Value DESCRIPTION (\S.*?)
5
6 Start
7 ^Interface\s+Description\s*$$ -> Begin
8
9 Begin
10 ^-+
11 ^Port\s+Type\s+Speed\s+Description\s*$$
12 ^Interface\s+Description\s*$$
13 ^${PORT}\s+${TYPE}\s+${SPEED}(?:\s+${DESCRIPTION})?\s*$$ -> Record
14 ^${PORT}\s+(?:\s+${DESCRIPTION})?\s*$$ -> Record
15 ^\s*$$
16 ^. -> Error