Skip to content

Commit

Permalink
removed 'interface(s)' from HARDWARE_TYPE capture.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wender Putters committed Mar 11, 2019
1 parent 0416199 commit 60b2b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cisco_xr_show_interfaces.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Value Required INTERFACE (\S+)
Value LINK_STATUS (.+?)
Value ADMIN_STATE (.+?)
Value HARDWARE_TYPE (\S+?(?:\s+Ethernet|)(?:\s+interface\(s\)|))
Value HARDWARE_TYPE (\S+?(?:\s+Ethernet|))
Value ADDRESS ((?:\w{4}\.){2}\w{4})
Value BIA ((?:\w{4}\.){2}\w{4})
Value DESCRIPTION (.*?)
Expand All @@ -15,7 +15,7 @@ Value ENCAPSULATION (\w+)
Start
^\S+\s+is -> Continue.Record
^${INTERFACE}\sis\s+${LINK_STATUS},\s+line\sprotocol\sis\s+${ADMIN_STATE}\s*$$
^\s+Hardware\s+is\s+${HARDWARE_TYPE}(?:,\s+address\s+is\s+${ADDRESS}(?:\s+\(bia\s+${BIA}\)\s*)*$$|\s.+|\s*$$)
^\s+Hardware\s+is\s+${HARDWARE_TYPE}(?:\s+interface\(s\)|)(?:,\s+address\s+is\s+${ADDRESS}(?:\s+\(bia\s+${BIA}\)\s*)*$$|\s.+|\s*$$)
^\s+Description:\s+${DESCRIPTION}\s*$$
^\s+[Ii]nternet\s+[Aa]ddress\s+is\s+${IP_ADDRESS}\s*$$
^\s+MTU\s+${MTU}.*BW\s+${BANDWIDTH}
Expand Down

0 comments on commit 60b2b47

Please sign in to comment.