R12 Publication-2025July16

Use Case of Return Value

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

Case1: 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.

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

Case2: 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.

Case3: 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.

Case4: 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.