Value PORT (\S+)
Value TYPE (\S+)
Value DUPLEX (Full|Half|--)
Value SPEED (\d+|--)
Value NEG (Enabled|Disabled|--)
Value FLOWCTRL (Off|On|--)
Value LINKSTATE (Up|Down)
Value BACKPRESSURE (Disabled|Enabled|--)
Value MDIXMODE (Off|On|--)

Start
  ^Flow\s+Link\s+Back\s+Mdix\s*$$
  ^Port\s+Type\s+Duplex\s+Speed\s+Neg\s+ctrl\s+State\s+Pressure\s+Mode\s*$$ -> Begin
  ^\s*$$
  ^. -> Error

Begin
  ^${PORT}\s+${TYPE}\s+${DUPLEX}\s+${SPEED}\s+${NEG}\s+${FLOWCTRL}\s+${LINKSTATE}\s+${BACKPRESSURE}\s+${MDIXMODE} -> Record
  ^-+
  ^Flow\s+Link\s*$$
  ^Ch\s+Type\s+Duplex\s+Speed\s+Neg\s+control\s+State -> EOF
  ^\s*$$
  ^. -> Error
