Skip to content

Commit

Permalink
NXOS SHOW INTERFACE STATUS: Update to account for newer version (#370)
Browse files Browse the repository at this point in the history
Newer OS versions have a separate header section for the MGMT interface than from the Ethernet interfaces. In order to account for this, the state change was removed and all matching is done under `Start`.
  • Loading branch information
Pluppo authored and jmcgill298 committed Feb 24, 2019
1 parent caea480 commit 274bb51
Show file tree
Hide file tree
Showing 3 changed files with 505 additions and 6 deletions.
7 changes: 1 addition & 6 deletions templates/cisco_nxos_show_interface_status.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ Value SPEED (\S+)
Value TYPE (\S+)

Start
^[Pp]ort\s+[Nn]ame\s+[Ss]tatus\s+[Vv]lan\s+[Dd]uplex\s+[Ss]peed\s+[Tt]ype\s*$$ -> INTFS
^-+\s*$$
^$$
^.*$$ -> Error

INTFS
^${PORT}\s+${NAME}\s+${STATUS}\s+${VLAN}\s+${DUPLEX}\s+${SPEED}\s+${TYPE}\s*$$ -> Record
^[Pp]ort\s+[Nn]ame\s+[Ss]tatus\s+[Vv]lan\s+[Dd]uplex\s+[Ss]peed\s+[Tt]ype\s*$$
^-+\s*$$
^$$
^.*$$ -> Error
Loading

0 comments on commit 274bb51

Please # to comment.