You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HP Procurve Show Vlans template regex is unable to handle the addition of the pipe separator used for separating the Name and Status colums (example below) which results in null returned. The following change to the regex resolves this issue (adding \S+\s+ to capture and ignore the pipe and white space):
Line 11: ^\s+${VLAN_ID}\s+${NAME}\s+\S+\s+${STATUS}\s+${VOICE}\s+${JUMBO} -> Record
Original Line 11: ^\s+${VLAN_ID}\s+${NAME}\s+${STATUS}\s+${VOICE}\s+${JUMBO} -> Record
VLAN ID Name | Status Voice Jumbo
------- -------------------------------- + ---------- ----- -----
1 DEFAULT_VLAN | Port-based No No
The text was updated successfully, but these errors were encountered:
@cyberdog478 I attempted to make the updates as you indicated, but it broke the existing test data. Can you provide full output (meaning cli prompt to cli prompt) of your show commands?
Looks like #148 would resolve this without breaking the test cases.
The | between the name and status appears on most of the newer hardware but is missing on the older stuff. The jumbo frames column won't always be present - depends if the hardware supports jumbo frames.
The HP Procurve Show Vlans template regex is unable to handle the addition of the pipe separator used for separating the Name and Status colums (example below) which results in null returned. The following change to the regex resolves this issue (adding \S+\s+ to capture and ignore the pipe and white space):
Line 11:
^\s+${VLAN_ID}\s+${NAME}\s+\S+\s+${STATUS}\s+${VOICE}\s+${JUMBO} -> Record
Original Line 11:
^\s+${VLAN_ID}\s+${NAME}\s+${STATUS}\s+${VOICE}\s+${JUMBO} -> Record
The text was updated successfully, but these errors were encountered: