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.
- Define the If condition and Match Pattern Rule.
- Run the intent and view the result.
![]() |
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. |
Case2: Diagnosis Message
This case can be used to output the compare details, such as the matched lines and missing lines.
- Define the status code.
- Run the intent and view the result.
Case3: CSV Report
Export the result in case2 to CSV report.
- Add an Export CSV Report block and define the report column.
- Run the intent and view the result.
Case4: Operate on Table
You can also select the return value in the Operate on Table block.
- Define the Operate on Table block: Add table row to an ADT.
- Run the intent and view the result.