| 1 |
Value BGP_NEIGH (\d+?\.\d+?\.\d+?\.\d+?) |
| 2 |
Value NEIGH_AS (\d+) |
| 3 |
Value UP_DOWN (\S+) |
| 4 |
Value STATE_PFXRCD (\w+) |
| 5 |
|
| 6 |
Start |
| 7 |
^BGP\s+router\s+identifier\s+\d+?\.\d+?\.\d+?\.\d+?,\s+local\s+AS\s+number\s+\d+\s*$$ |
| 8 |
^BGP\s+table\s+version\s+is\s+\d+?$$ |
| 9 |
^\d+\s+BGP\s+AS-PATH\s+entries\s*$$ |
| 10 |
^\d+\s+BGP\s+community\s+entries\s*$$ |
| 11 |
^Neighbor\s+V\s+AS\s+MsgRcvd\s+MsgSent\s+TblVer\s+InQ\s+OutQ\s+Up\/Down\s+State\/PfxRcd.*$$ |
| 12 |
^${BGP_NEIGH}\s+\S+\s+${NEIGH_AS}(?:\s+\S+\s+){5}${UP_DOWN}\s+${STATE_PFXRCD}\s*$$ -> Record |
| 13 |
^Total number\s+of\s+neighbors\s+\d*\s*$$ |
| 14 |
^\s*$$ |
| 15 |
^. -> Error |