R12.1 Project-2025Sep08
Parent Paragraph
A paragraph (the parent paragraph) can also have nested paragraphs and tables.
You can add previously defined paragraphs as parent paragraphs to a Paragraph Parser or a Table Parser. The variables defined in parent paragraphs can be inherited and displayed as columns in the Parser Result table. Since the parent paragraph can contain nested paragraphs, it is possible to create multi-layer nested paragraphs and tables.
When the parent paragraph is selected, the Start Line and End Line settings apply within each paragraph rather than to the entire sample data. This allows multiple start and end lines to be used for nested paragraphs and tables.
Example: Create a Parser for the nested table for the command show bgp all summary.
- Define parent paragraph bgpfamily to parser variables $family, $identifier and $number.
- Define a table pattern, bgp_nbrs.
- In the bgp_nbrs pattern, click Add Parent to add the parent paragraph.
- Select the paragraph pattern bgp_family as the parent paragraph from the dropdown menu.
- Click 3/3 Variables to open the Select Variable window. Select the variables to be inherited and displayed from the list (all variables are selected by default). Then the parent paragraph is added.