ntc_templates/templates/arista_eos_show_interfaces_description.textfsm
raw| 1 | Value PORT (\S+) |
| 2 | Value STATUS (up|down|admin\s+down) |
| 3 | Value PROTOCOL (up|down|lowerlayerdown|notpresent) |
| 4 | Value DESCRIP (\S.*?) |
| 5 | |
| 6 | Start |
| 7 | ^Interface\s+Status\s+Protocol\s+Description\s*$$ -> Begin |
| 8 | ^\s*$$ |
| 9 | # Capture time-stamp if vty line has command time-stamping turned on |
| 10 | ^Load\s+for\s+ |
| 11 | ^Time\s+source\s+is |
| 12 | ^. -> Error |
| 13 | |
| 14 | Begin |
| 15 | ^${PORT}\s+${STATUS}\s+${PROTOCOL}(?:\s+${DESCRIP})?\s*$$ -> Record |
| 16 | ^\s*$$ |
| 17 | ^. -> Error |