R12.3 Project Publication -20250115

Use Case of Return Value

The return values of the match pattern can be used in the following cases.

Case 1: Intent Command Diagnosis - You can compare the base ACL and current ACL, and output the corresponding status code.

  1. Define the If condition and Match Pattern Rule.

  2. Run the intent and view the result.

  3. Information Note: The return values of the match pattern only work in the current diagnosis, and you cannot see the match patterns defined in other diagnoses.

Case 2: Diagnosis Message - This case can be used to output the compare details, such as the matched lines and missing lines.

  1. Define the status code.

  2. Run the intent and view the result.

Case 3: CSV Report - Export the result in case2 to CSV report.

  1. Add an Export CSV Report block and define the report column.

  2. Run the intent and view the result.

Case 4: Operate on Table - You can also select the return value in the Operate on Table block.

  1. Define the Operate on Table block: Add table row to an ADT.

  2. Run the intent and view the result.