Value PORT (\S+)
Value NAME (\S.*(?<!\s))
Value STATUS (connected|notconnect|inactive|errdisabled|disabled)
Value VLAN_ID (\S+)
Value DUPLEX (\S+)
Value SPEED (\S+)
Value TYPE (Not\s+Present|\S+)
Value FLAGS (\S+)

Start
  ^${PORT}(?:\s+${NAME})?\s+${STATUS}\s+(?:in\s+)?${VLAN_ID}\s+${DUPLEX}\s+${SPEED}\s+${TYPE}(?:\s+${FLAGS})?(?:\s+\S+)?\s*$$ -> Record
  ^Port\s+Name\s+Status\s+Vlan\s+Duplex\s+Speed\s+Type(?:\s+Flags)?(?:\s+Encapsulation)?\s*$$
  ^\s*$$
  ^. -> Error
