Skip to content

Commit

Permalink
Fix HP Procurve show_vlans template (failing py.test)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 committed May 11, 2018
1 parent e43bbcf commit c4b39d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions templates/hp_procurve_show_vlans.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Value VLAN_ID (\d+)
Value NAME ([\S+\s+].*(?=\|))
Value NAME (.*?)
Value STATUS (\S+)
Value VOICE (Yes|No)
Value JUMBO (Yes|No)
Expand All @@ -8,4 +8,6 @@ Start
^.*VLAN ID -> VLAN

VLAN
^\s+${VLAN_ID}\s+${NAME}\s+\|?\s?${STATUS}\s+${VOICE}\s+${JUMBO}? -> Record
^\s+${VLAN_ID}\s+${NAME}\s+(\|\s+|)${STATUS}\s+${VOICE}(\s+${JUMBO}|)\s*$$ -> Record
^\s+-+\s+-+\s+(\+\s+|)-+\s+-+(\s+-+|)\s*$$
^.*$$ -> Error

0 comments on commit c4b39d1

Please sign in to comment.