2023-Nov-03-R11.1a
Define a Table Parser
Table Parser parses table-formatted text, such as NDP table, VRF table, OSPF neighbors, etc. With the Table Parser, users can address the line of table headers in the raw text and then leverage the column separator to manually adjust the column width of the table.
Applicable Parser Rules for Table Parser
When to Use a Table Parser
A Table Parser transforms the table-style text into a table data structure.
Defining a Table Parser to Parse VRF Table
Take the parsing of the VRF table as an example. You can define a Table Parser to parse the VRF table.
- Retrieve sample text.
- Select a Parser type by clicking Add Table.
- Select the line of the table header in the Sample area, and click the arrow (
) to duplicate the text in the Table Header Line and Column Separator field.
Tip: Users can also click Set as Table Header in the dropdown after selecting the line of table header in the Sample area. - In the Column Separator field, add a semicolon (;) to separate every two column names.
- In the Table Column Variables area, select variables required to parse, rename and select their types.
- Preview the parsed result of sample text, and click OK to save the Table Parser.