R12.1-JA-2025June05

Define Appended Table

Appended Table can be used to append one table row with the other table row, then a new table is created. For example, the following table 1 is OSPF routes and table 2 is connected routes. You can use appended table to append the table 2 rows and table 1 rows. The row cell with the same column title will be appended, otherwise, the cell will be left empty. And you must define how to map the columns of two tables.

Complete the following steps to append the connected route table and OSPF route table.

  1. Build an intent to parse the connected route table and OSPF route table.
    1. Parse the connected route table.

    2. Parse OSPF route table.

  2. Define the appended table to merge two table rows with column mapping.
    1. In the Add Appended Table dialog, open the drop-down menu to select the table variables for Table 1 and Table 2.

    2. Click Add Mapping to define the mapping relationship between Tables 1 and 2.

    3. Click the  icon to define the columns that are kept in the generated appended table.

    4. Click Calculate to append the row data of Table 2 and the row data of Table 1, and then generate an appended table with the rows of different tables highlighted.

  3. Define diagnosis to loop the appended route table to output the status code.
     

Key Logic of Appended Table

The key logic of appended table is as follows:

  • The output table name must follow variable naming rules.
  • Select the table variables for Input Table. The table variable includes a parser table and compound table.
  • Column Mapping: map columns of table2 to columns of table1. The column name of the Appended Table will be the same as that of table 1.