2023-Nov-03-R11.1a

Define Sub Table Filtered by Condition

Sub Table (Filtering Row by Condition) can keep or remove the rows of the base table matching the conditions.

Complete the following steps to use sub table to filter table row by specified condition, for example, create a sub table to only keep the interface with the IP address configured.

  1. Build an intent to parse the IP addresses configured on all interfaces on the device via the command show ip interface brief.

  2. Define a sub table (filtering row by condition) only to include rows with the ip_address values that are not "unassigned".

  3. Get a sub table that only retains the interfaces configured with IP.

Key Logic of Sub Table (Filtering Row by Condition)

You can define the sub table (filtering row by condition) by the following logic:

  1. The output table name must follow variable naming rules.
  2. Select the table variables for Base Table. The table variable includes a parser table, intent table, built-in table, ADT, and compound table.
  3. Filtering Logic:
    1. Define filter rule: Only Keep or Only Remove.
    2. The left-side field can specify the columns of the Base Table.
    3. The right-side field can specify the Intent variable and enter a constant.

The sub table columns can be set by selecting columns in the Advanced Settings.