Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize vlan id and name stragglers #1984

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/dev/data_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ Example: Imagine the extra programming logic needed to consume structured data w
| `PREFIX_LENGTH` | instead of PREFIX or CIDR for the numbers of a slash notation or CIDR mask |
| `PROTOCOL` | instead of PROTO |
| `ROUTER_ID` | for local router IDs (local to the device being parsed) |
| `VLAN_ID` | instead of VLAN or TAG |
| `VLAN_ID` | numeric VLAN identifier; used instead of VLAN, VLANID, or TAG |
| `VLAN_NAME` | VLAN name or description |
224 changes: 112 additions & 112 deletions ntc_templates/templates/brocade_fastiron_show_interfaces.textfsm
Original file line number Diff line number Diff line change
@@ -1,117 +1,117 @@
Value interface ([a-zA-Z0-9\/\s]+)
Value Required intstate (up|down|disabled)
Value protostate (up|down)
Value stprootguard (enabled|disabled|Enabled|Disabled)
Value stpbpduguard (enabled|disabled|Enabled|Disabled)
Value hardwaretype ([a-zA-Z0-9\s]+)
Value mac ([0-9a-f\.]+)
Value bia ([0-9a-f\.]+)
Value confspeed ([0-9a-zA-Z]+)
Value confduplex ([0-9a-zA-Z]+)
Value actualspeed ([0-9a-zA-Z]+)
Value actualduplex ([0-9a-zA-Z]+)
Value l2portstate (Forwarding|Disabled|FORWARDING|DISABLED)
Value l2portmode (tagged|untagged|dual)
Value untaggedvlan (\d+)
Value numtaggedvlans (\d+)
Value stpconfstate (ON|OFF)
Value priority ([a-zA-Z0-9]+)
Value flowcontrolconfigstate (enabled|disabled)
Value flowcontrolopstate (enabled|disabled)
Value flowcontrolnegconfig (enabled|disabled)
Value mirrorstate (enabled|disabled)
Value monitorstate (enabled|disabled)
Value activelagports ([0-9\/\-\,]+)
Value activelagrole (primary|secondary)
Value activelagprimaryport ([0-9\/]+)
Value conflagports ([0-9\/\-\,]+)
Value conflagrole (primary|secondary)
Value conflagprimaryport ([0-9\/]+)
Value portname ([a-zA-Z0-9\.\ \"\(\)\#\/\-]+)
Value l2mtubytes (\d+)
Value loadinterval (\d+)
Value inputbitssec (\d+)
Value inputpacketssec (\d+)
Value inputpercentutilization ([\d\.]+)
Value outputbitssec (\d+)
Value outputpacketssec (\d+)
Value outputpercentutilization ([\d\.]+)
Value inputpacketstotal (\d+)
Value inputbytestotal (\d+)
Value inputnobuffers (\d+)
Value inputbroadcasts (\d+)
Value inputmulticasts (\d+)
Value inputunicasts (\d+)
Value inputerrors (\d+)
Value inputcrcerrors (\d+)
Value inputframeerrors (\d+)
Value inputignorederrors (\d+)
Value inputrunts (\d+)
Value inputgiants (\d+)
Value outputpacketstotal (\d+)
Value outputbytestotal (\d+)
Value outputunderruns (\d+)
Value outputbroadcasts (\d+)
Value outputmulticasts (\d+)
Value outputunicasts (\d+)
Value outputerrors (\d+)
Value outputcollisions (\d+)
Value relayagentinfo (Disabled|Enabled)
Value queue0queued (\d+)
Value queue0dropped (\d+)
Value queue1queued (\d+)
Value queue1dropped (\d+)
Value queue2queued (\d+)
Value queue2dropped (\d+)
Value queue3queued (\d+)
Value queue3dropped (\d+)
Value queue4queued (\d+)
Value queue4dropped (\d+)
Value queue5queued (\d+)
Value queue5dropped (\d+)
Value queue6queued (\d+)
Value queue6dropped (\d+)
Value queue7queued (\d+)
Value queue7dropped (\d+)
Value INTERFACE ([a-zA-Z0-9\/\s]+)
Value Required INTSTATE (up|down|disabled)
Value PROTOSTATE (up|down)
Value STPROOTGUARD (enabled|disabled|Enabled|Disabled)
Value STPBPDUGUARD (enabled|disabled|Enabled|Disabled)
Value HARDWARETYPE ([a-zA-Z0-9\s]+)
Value MAC ([0-9a-f\.]+)
Value BIA ([0-9a-f\.]+)
Value CONFSPEED ([0-9a-zA-Z]+)
Value CONFDUPLEX ([0-9a-zA-Z]+)
Value ACTUALSPEED ([0-9a-zA-Z]+)
Value ACTUALDUPLEX ([0-9a-zA-Z]+)
Value L2PORTSTATE (Forwarding|Disabled|FORWARDING|DISABLED)
Value L2PORTMODE (tagged|untagged|dual)
Value UNTAGGEDVLAN (\d+)
Value NUMTAGGEDVLANS (\d+)
Value STPCONFSTATE (ON|OFF)
Value PRIORITY ([a-zA-Z0-9]+)
Value FLOWCONTROLCONFIGSTATE (enabled|disabled)
Value FLOWCONTROLOPSTATE (enabled|disabled)
Value FLOWCONTROLNEGCONFIG (enabled|disabled)
Value MIRRORSTATE (enabled|disabled)
Value MONITORSTATE (enabled|disabled)
Value ACTIVELAGPORTS ([0-9\/\-\,]+)
Value ACTIVELAGROLE (primary|secondary)
Value ACTIVELAGPRIMARYPORT ([0-9\/]+)
Value CONFLAGPORTS ([0-9\/\-\,]+)
Value CONFLAGROLE (primary|secondary)
Value CONFLAGPRIMARYPORT ([0-9\/]+)
Value PORTNAME ([a-zA-Z0-9\.\ \"\(\)\#\/\-]+)
Value L2MTUBYTES (\d+)
Value LOADINTERVAL (\d+)
Value INPUTBITSSEC (\d+)
Value INPUTPACKETSSEC (\d+)
Value INPUTPERCENTUTILIZATION ([\d\.]+)
Value OUTPUTBITSSEC (\d+)
Value OUTPUTPACKETSSEC (\d+)
Value OUTPUTPERCENTUTILIZATION ([\d\.]+)
Value INPUTPACKETSTOTAL (\d+)
Value INPUTBYTESTOTAL (\d+)
Value INPUTNOBUFFERS (\d+)
Value INPUTBROADCASTS (\d+)
Value INPUTMULTICASTS (\d+)
Value INPUTUNICASTS (\d+)
Value INPUTERRORS (\d+)
Value INPUTCRCERRORS (\d+)
Value INPUTFRAMEERRORS (\d+)
Value INPUTIGNOREDERRORS (\d+)
Value INPUTRUNTS (\d+)
Value INPUTGIANTS (\d+)
Value OUTPUTPACKETSTOTAL (\d+)
Value OUTPUTBYTESTOTAL (\d+)
Value OUTPUTUNDERRUNS (\d+)
Value OUTPUTBROADCASTS (\d+)
Value OUTPUTMULTICASTS (\d+)
Value OUTPUTUNICASTS (\d+)
Value OUTPUTERRORS (\d+)
Value OUTPUTCOLLISIONS (\d+)
Value RELAYAGENTINFO (Disabled|Enabled)
Value QUEUE0QUEUED (\d+)
Value QUEUE0DROPPED (\d+)
Value QUEUE1QUEUED (\d+)
Value QUEUE1DROPPED (\d+)
Value QUEUE2QUEUED (\d+)
Value QUEUE2DROPPED (\d+)
Value QUEUE3QUEUED (\d+)
Value QUEUE3DROPPED (\d+)
Value QUEUE4QUEUED (\d+)
Value QUEUE4DROPPED (\d+)
Value QUEUE5QUEUED (\d+)
Value QUEUE5DROPPED (\d+)
Value QUEUE6QUEUED (\d+)
Value QUEUE6DROPPED (\d+)
Value QUEUE7QUEUED (\d+)
Value QUEUE7DROPPED (\d+)


Start
^\s+10Gig -> Continue.Record
^(Gig|10Gig|40Gig|\s+10Gig) -> Continue.Record
^\s*${interface} is ${intstate}, line protocol is ${protostate} -> Continue
^\s+Hardware is ${hardwaretype}, address is ${mac} \(bia ${bia}\) -> Continue
^\s+BPDU guard is ${stpbpduguard}, ROOT protect is ${stprootguard} -> Continue
^\s+Configured speed ${confspeed}, actual ${actualspeed}, configured duplex ${confduplex}, actual ${actualduplex} -> Continue
^\s+Member of L2 VLAN ID ${untaggedvlan}, port is ${l2portmode}, port state is ${l2portstate} -> Continue
^\s+Member of ${numtaggedvlans} L2 VLANs, port is ${l2portmode} mode in Vlan ${untaggedvlan}, port state is ${l2portstate} -> Continue
^\s+Member of ${numtaggedvlans} L2 VLANs, port is ${l2portmode}, port state is ${l2portstate} -> Continue
^\s+port is in ${l2portmode} mode, port state is ${l2portstate} -> Continue
^\s+STP configured to ${stpconfstate}, priority is ${priority} -> Continue
^\s+Flow Control is config ${flowcontrolconfigstate}, oper ${flowcontrolopstate}, negotiation ${flowcontrolnegconfig} -> Continue
^\s+Flow Control is ${flowcontrolconfigstate} -> Continue
^\s+Mirror ${mirrorstate}, Monitor ${monitorstate} -> Continue
^\s+Member of active trunk ports ${activelagports}, ${activelagrole} port, primary port is ${activelagprimaryport} -> Continue
^\s+Member of configured trunk ports ${conflagports}, ${conflagrole} port, primary port is ${conflagprimaryport} -> Continue
^\s+Member of active trunk ports ${activelagports}, ${activelagrole} port -> Continue
^\s+Member of configured trunk ports ${conflagports}, ${conflagrole} port -> Continue
^\s+Port name is ${portname} -> Continue
^\s+MTU ${l2mtubytes} bytes -> Continue
^\s+IP MTU ${l2mtubytes} bytes -> Continue
^\s+${loadinterval} second input rate: ${inputbitssec} bits/sec, ${inputpacketssec} packets/sec, ${inputpercentutilization}% utilization -> Continue
^\s+(\d+) second output rate: ${outputbitssec} bits/sec, ${outputpacketssec} packets/sec, ${outputpercentutilization}% utilization -> Continue
^\s+${inputpacketstotal} packets input, ${inputbytestotal} bytes, ${inputnobuffers} no buffer -> Continue
^\s+Received ${inputbroadcasts} broadcasts, ${inputmulticasts} multicasts, ${inputunicasts} unicasts -> Continue
^\s+${inputerrors} input errors, ${inputcrcerrors} CRC, ${inputframeerrors} frame, ${inputignorederrors} ignored -> Continue
^\s+${inputrunts} runts, ${inputgiants} giants -> Continue
^\s+${outputpacketstotal} packets output, ${outputbytestotal} bytes, ${outputunderruns} underruns -> Continue
^\s+Transmitted ${outputbroadcasts} broadcasts, ${outputmulticasts} multicasts, ${outputunicasts} unicasts -> Continue
^\s+${outputerrors} output errors, ${outputcollisions} collisions -> Continue
^\s+Relay Agent Information option: ${relayagentinfo} -> Continue
^\s+0\s+${queue0queued}\s+${queue0dropped} -> Continue
^\s+1\s+${queue1queued}\s+${queue1dropped} -> Continue
^\s+2\s+${queue2queued}\s+${queue2dropped} -> Continue
^\s+3\s+${queue3queued}\s+${queue3dropped} -> Continue
^\s+4\s+${queue4queued}\s+${queue4dropped} -> Continue
^\s+5\s+${queue5queued}\s+${queue5dropped} -> Continue
^\s+6\s+${queue6queued}\s+${queue6dropped} -> Continue
^\s+7\s+${queue7queued}\s+${queue7dropped} -> Continue
^\s*${INTERFACE} is ${INTSTATE}, line protocol is ${PROTOSTATE} -> Continue
^\s+Hardware is ${HARDWARETYPE}, address is ${MAC} \(bia ${BIA}\) -> Continue
^\s+BPDU guard is ${STPBPDUGUARD}, ROOT protect is ${STPROOTGUARD} -> Continue
^\s+Configured speed ${CONFSPEED}, actual ${ACTUALSPEED}, configured duplex ${CONFDUPLEX}, actual ${ACTUALDUPLEX} -> Continue
^\s+Member of L2 VLAN ID ${UNTAGGEDVLAN}, port is ${L2PORTMODE}, port state is ${L2PORTSTATE} -> Continue
^\s+Member of ${NUMTAGGEDVLANS} L2 VLANs, port is ${L2PORTMODE} mode in Vlan ${UNTAGGEDVLAN}, port state is ${L2PORTSTATE} -> Continue
^\s+Member of ${NUMTAGGEDVLANS} L2 VLANs, port is ${L2PORTMODE}, port state is ${L2PORTSTATE} -> Continue
^\s+port is in ${L2PORTMODE} mode, port state is ${L2PORTSTATE} -> Continue
^\s+STP configured to ${STPCONFSTATE}, priority is ${PRIORITY} -> Continue
^\s+Flow Control is config ${FLOWCONTROLCONFIGSTATE}, oper ${FLOWCONTROLOPSTATE}, negotiation ${FLOWCONTROLNEGCONFIG} -> Continue
^\s+Flow Control is ${FLOWCONTROLCONFIGSTATE} -> Continue
^\s+Mirror ${MIRRORSTATE}, Monitor ${MONITORSTATE} -> Continue
^\s+Member of active trunk ports ${ACTIVELAGPORTS}, ${ACTIVELAGROLE} port, primary port is ${ACTIVELAGPRIMARYPORT} -> Continue
^\s+Member of configured trunk ports ${CONFLAGPORTS}, ${CONFLAGROLE} port, primary port is ${CONFLAGPRIMARYPORT} -> Continue
^\s+Member of active trunk ports ${ACTIVELAGPORTS}, ${ACTIVELAGROLE} port -> Continue
^\s+Member of configured trunk ports ${CONFLAGPORTS}, ${CONFLAGROLE} port -> Continue
^\s+Port name is ${PORTNAME} -> Continue
^\s+MTU ${L2MTUBYTES} bytes -> Continue
^\s+IP MTU ${L2MTUBYTES} bytes -> Continue
^\s+${LOADINTERVAL} second input rate: ${INPUTBITSSEC} bits/sec, ${INPUTPACKETSSEC} packets/sec, ${INPUTPERCENTUTILIZATION}% utilization -> Continue
^\s+(\d+) second output rate: ${OUTPUTBITSSEC} bits/sec, ${OUTPUTPACKETSSEC} packets/sec, ${OUTPUTPERCENTUTILIZATION}% utilization -> Continue
^\s+${INPUTPACKETSTOTAL} packets input, ${INPUTBYTESTOTAL} bytes, ${INPUTNOBUFFERS} no buffer -> Continue
^\s+Received ${INPUTBROADCASTS} broadcasts, ${INPUTMULTICASTS} multicasts, ${INPUTUNICASTS} unicasts -> Continue
^\s+${INPUTERRORS} input errors, ${INPUTCRCERRORS} CRC, ${INPUTFRAMEERRORS} frame, ${INPUTIGNOREDERRORS} ignored -> Continue
^\s+${INPUTRUNTS} runts, ${INPUTGIANTS} giants -> Continue
^\s+${OUTPUTPACKETSTOTAL} packets output, ${OUTPUTBYTESTOTAL} bytes, ${OUTPUTUNDERRUNS} underruns -> Continue
^\s+Transmitted ${OUTPUTBROADCASTS} broadcasts, ${OUTPUTMULTICASTS} multicasts, ${OUTPUTUNICASTS} unicasts -> Continue
^\s+${OUTPUTERRORS} output errors, ${OUTPUTCOLLISIONS} collisions -> Continue
^\s+Relay Agent Information option: ${RELAYAGENTINFO} -> Continue
^\s+0\s+${QUEUE0QUEUED}\s+${QUEUE0DROPPED} -> Continue
^\s+1\s+${QUEUE1QUEUED}\s+${QUEUE1DROPPED} -> Continue
^\s+2\s+${QUEUE2QUEUED}\s+${QUEUE2DROPPED} -> Continue
^\s+3\s+${QUEUE3QUEUED}\s+${QUEUE3DROPPED} -> Continue
^\s+4\s+${QUEUE4QUEUED}\s+${QUEUE4DROPPED} -> Continue
^\s+5\s+${QUEUE5QUEUED}\s+${QUEUE5DROPPED} -> Continue
^\s+6\s+${QUEUE6QUEUED}\s+${QUEUE6DROPPED} -> Continue
^\s+7\s+${QUEUE7QUEUED}\s+${QUEUE7DROPPED} -> Continue
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
Value interface (\S+)
Value linkstate (Up|Disable|Down|ERR-DIS)
Value portstate ([a-zA-Z\/]+)
Value duplex ([a-zA-Z\/]+)
Value speed ([a-zA-Z0-9\/]+)
Value trunkid (\d+|None)
Value tagonly (Yes|No|N\/A)
Value pvid (\d+|N\/A|None)
Value priority ([a-zA-Z0-9\/]+)
Value mac ([A-Fa-f0-9\.]{14})
Value name (\S+)
Value INTERFACE (\S+)
Value LINKSTATE (Up|Disable|Down|ERR-DIS)
Value PORTSTATE ([a-zA-Z\/]+)
Value DUPLEX ([a-zA-Z\/]+)
Value SPEED ([a-zA-Z0-9\/]+)
Value TRUNKID (\d+|None)
Value TAGONLY (Yes|No|N\/A)
Value PVID (\d+|N\/A|None)
Value PRIORITY ([a-zA-Z0-9\/]+)
Value MAC ([A-Fa-f0-9\.]{14})
Value NAME (\S+)

Start
^Port\s+Link\s+State\s+Dupl\s+Speed\s+Trunk\s+Tag\s+Pvid\s+Pri\s+MAC\s+Name
^${interface}\s+${linkstate}\s+${portstate}\s+${duplex}\s+${speed}\s+${trunkid}\s+${tagonly}\s+${pvid}\s+${priority}\s+${mac}\s+${name} -> Next.Record
^${interface}\s+${linkstate}\s+${portstate}\s+${duplex}\s+${speed}\s+${trunkid}\s+${tagonly}\s+${pvid}\s+${priority}\s+${mac} -> Next.Record
^${INTERFACE}\s+${LINKSTATE}\s+${PORTSTATE}\s+${DUPLEX}\s+${SPEED}\s+${TRUNKID}\s+${TAGONLY}\s+${PVID}\s+${PRIORITY}\s+${MAC}\s+${NAME} -> Next.Record
^${INTERFACE}\s+${LINKSTATE}\s+${PORTSTATE}\s+${DUPLEX}\s+${SPEED}\s+${TRUNKID}\s+${TAGONLY}\s+${PVID}\s+${PRIORITY}\s+${MAC} -> Next.Record
^. -> Error
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Value lagnameshort ([0-9\/\sA-Za-z\-\.]+)
Value lagtype (dynamic|static)
Value deployed (Y|N)
Value trunkid (\d+)
Value primaryinterface ([0-9\/]+)
Value portlist ([eto0-9\/\s\r\n]+)
Value portlistcont ([eto0-9\/\s\r\n]+)
Value LAGNAMESHORT ([0-9\/\sA-Za-z\-\.]+)
Value LAGTYPE (dynamic|static)
Value DEPLOYED (Y|N)
Value TRUNKID (\d+)
Value PRIMARYINTERFACE ([0-9\/]+)
Value PORTLIST ([eto0-9\/\s\r\n]+)
Value PORTLISTCONT ([eto0-9\/\s\r\n]+)

Start
^\S -> Continue.Record
^${lagnameshort}${lagtype}\s+${deployed}\s+${trunkid}\s+${primaryinterface}\s+${portlist}
^\s+${portlistcont}
^${LAGNAMESHORT}${LAGTYPE}\s+${DEPLOYED}\s+${TRUNKID}\s+${PRIMARYINTERFACE}\s+${PORTLIST}
^\s+${PORTLISTCONT}
56 changes: 28 additions & 28 deletions ntc_templates/templates/brocade_fastiron_show_metro.textfsm
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
Value ringid (\d+)
Value ringname ([a-zA-Z0-9\-\"\ ]+)
Value ringstate (enabled|disabled)
Value ringrole (member|master)
Value mastervlan (\d+)
Value topogroup (\d+|not conf)
Value hellotime (\d+)
Value prefwingtime (\d+)
Value port1interface ([0-9\/]+)
Value port1role (primary|secondary)
Value port1state (\w+)
Value port1activeint ([0-9\/]+)
Value port1inttype (\w+)
Value port2interface ([0-9\/]+)
Value port2role (primary|secondary)
Value port2state (\w+)
Value port2activeint ([0-9\/]+)
Value port2inttype (\w+)
Value rhpssent (\d+)
Value rhpsrecvd (\d+)
Value tcrbpdusrecvd (\d+)
Value statechanges (\d+)
Value RINGID (\d+)
Value RINGNAME ([a-zA-Z0-9\-\"\ ]+)
Value RINGSTATE (enabled|disabled)
Value RINGROLE (member|master)
Value MASTERVLAN (\d+)
Value TOPOGROUP (\d+|not conf)
Value HELLOTIME (\d+)
Value PREFWINGTIME (\d+)
Value PORT1INTERFACE ([0-9\/]+)
Value PORT1ROLE (primary|secondary)
Value PORT1STATE (\w+)
Value PORT1ACTIVEINT ([0-9\/]+)
Value PORT1INTTYPE (\w+)
Value PORT2INTERFACE ([0-9\/]+)
Value PORT2ROLE (primary|secondary)
Value PORT2STATE (\w+)
Value PORT2ACTIVEINT ([0-9\/]+)
Value PORT2INTTYPE (\w+)
Value RHPSSENT (\d+)
Value RHPSRECVD (\d+)
Value TCRBPDUSRECVD (\d+)
Value STATECHANGES (\d+)

Start
^Metro Ring ${ringid} -> Continue
^Metro Ring ${ringid} - ${ringname}
^\d+\s+${ringstate}\s+${ringrole}\s+${mastervlan}\s+${topogroup}\s+${hellotime}\s+${prefwingtime}
^${rhpssent}\s+${rhpsrecvd}\s+${tcrbpdusrecvd}\s+${statechanges} -> Record
^ethernet\s+${port1interface}\s+${port1role}\s+${port1state}\s+ethernet\s+${port1activeint}\s+${port1inttype} -> PORT2
^Metro Ring ${RINGID} -> Continue
^Metro Ring ${RINGID} - ${RINGNAME}
^\d+\s+${RINGSTATE}\s+${RINGROLE}\s+${MASTERVLAN}\s+${TOPOGROUP}\s+${HELLOTIME}\s+${PREFWINGTIME}
^${RHPSSENT}\s+${RHPSRECVD}\s+${TCRBPDUSRECVD}\s+${STATECHANGES} -> Record
^ethernet\s+${PORT1INTERFACE}\s+${PORT1ROLE}\s+${PORT1STATE}\s+ethernet\s+${PORT1ACTIVEINT}\s+${PORT1INTTYPE} -> PORT2

PORT2
^ethernet\s+${port2interface}\s+${port2role}\s+${port2state}\s+ethernet\s+${port2activeint}\s+${port2inttype} -> Start
^ethernet\s+${PORT2INTERFACE}\s+${PORT2ROLE}\s+${PORT2STATE}\s+ethernet\s+${PORT2ACTIVEINT}\s+${PORT2INTTYPE} -> Start

12 changes: 6 additions & 6 deletions ntc_templates/templates/brocade_fastiron_show_monitor.textfsm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Value monitoredport ([0-9\/]+)
Value inputmirror ([0-9\/\(\)\ UM]+)
Value outputmirror ([0-9\/\(\)\ UM]+)
Value MONITOREDPORT ([0-9\/]+)
Value INPUTMIRROR ([0-9\/\(\)\ UM]+)
Value OUTPUTMIRROR ([0-9\/\(\)\ UM]+)

Start
^\w -> Continue.Record
^Monitored Port ${monitoredport} -> Continue
^\s+Input mirrored by\s+:\s+${inputmirror} -> Continue
^\s+Output mirrored by\s+:\s+${outputmirror} -> Continue
^Monitored Port ${MONITOREDPORT} -> Continue
^\s+Input mirrored by\s+:\s+${INPUTMIRROR} -> Continue
^\s+Output mirrored by\s+:\s+${OUTPUTMIRROR} -> Continue
Loading