R12.3-20260213
Create Table in Paragraph Pattern
AI can create complex patterns with dependency relationships, such as nested structures like 'paragraph in paragraph’. The following example demonstrates how AI generates a paragraph pattern and a table pattern, with one embedded inside the other.
- Command: show spanning-tree
- Prompt: Please parse the priority, address, cost and port of ID root, also extract the interface information of each vlan.

Steps:
- Create a parser and define the parser name and description.
- Select device and retrieve data with the command "show spanning-tree".
- In the Prompt Input Pane, input the prompt "Please parse the priority, address, cost and port of root, also extract the interface information of each vlan", then click the Send button. AI creates a paragraph pattern "vLAN" to get the metrics of ID root and a table pattern "VLAN_interfaces" to parser interface metrics.
- The "vLAN" and its parse results are shown below

- The "VLAN_Interfaces" table pattern and its parse results are shown below:

- The "vLAN" and its parse results are shown below
- Input the prompt “change the name of the variable indicating the vlan name to "VLAN name” to change the variable name for VLAN to "VLAN_name".

- Input the prompt “change the name of the variable indicating the interface name to "Interface name"” to change the variable name for interface to "interface_name".

- Click the "Apply" button, the two patterns are saved to the parser.
