Skip to content

Commit 9180e96

Browse files
committed
Consolidate rules into Start state
1 parent 0dfc9ad commit 9180e96

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ntc_templates/templates/hp_procurve_show_interfaces_status.textfsm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,11 @@ Value VLAN_UNTAGGED (\S+)
99

1010
Start
1111
^\s*Port\s+Name\s+Status\s+Config-mode\s+Speed\s+Type\s+Tagged\s+Untagged\s*$$
12-
^\s*-+(?:\s+-+)+\s*$$ -> Ports
13-
^\s*$$
14-
^. -> Error
15-
16-
Ports
1712
^\s+${PORT}\s+${NAME}\s+${STATUS}\s+${CONFIG_MODE}\s+${SPEED}\s+${TYPE}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
1813
^\s+${PORT}\s+${NAME}\s+${STATUS}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
1914
^\s+${PORT}\s+${STATUS}\s+${CONFIG_MODE}\s+${SPEED}\s+${TYPE}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
2015
^\s+${PORT}\s+${STATUS}\s+${CONFIG_MODE}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
2116
^\s+${PORT}\s+${STATUS}\s+${VLAN_TAGGED}\s+${VLAN_UNTAGGED}\s*$$ -> Record
17+
^\s*---+
2218
^\s*$$
2319
^. -> Error

0 commit comments

Comments
 (0)