R12.1-JA-2025June05
Define Diagnosis
Diagnosis is the most critical component of NI. You can define the logic of validating and verifying the network design in Diagnosis and create diagnosis notes. A common diagnosis is as simple as: if the variable is not equal to a specific value (the baseline value) and then creates a diagnosis note. Status code describes NI execution results (Alert or Success). You can also directly add a diagnosis with template.
- On the Define Diagnosis tab, click Add Diagnosis. Enter a diagnosis name.
- Select a relevant variable as an anchor. Anchor defines where the diagnosis is displayed on the input text.
- You can directly add a diagnosis with template.
- You can also define flexible actions based on your needs. Navigate to step 3 to continue.
- Click Add Loop, and select a table to loop. Hover over this loop and click Add If-then to define the if statement inside the current loop.
Note: You can define the table key by selecting table columns. Columns set as table keys will be displayed on the interface and synchronized to the table definition
Note: You can also define the whole table-based diagnosis, inline expression, and sub table here.
- Set the If condition as state Does not contain FULL.
- Add a diagnosis message action, then define the diagnosis message color and text. And select the Set Status Code for Device check box to add a status code at the device level or Set Status Code for Intent check box to add a status code at the NI level.
Note: You can view these two levels of status codes and their summaries in execution result. See View Intent Status Code for more details.
Note: You can click Add Action to add more logics. See Main Components of Diagnosis for more details about the logic set. - (Optional) You can also add the Elseif branch under the If branch to specify more conditions.
Note: Elseif branches can only be added after the If and Elseif branches, and Else branches can only be added to the end. - You can click Add Action > Advanced > Break Loop to add the Break Loop node to control the flow of the loop table row. When the table row loops, as long as the condition is satisfied, the current loop table will be terminated to reduce the calculation of the redundant loop.
See Add Diagnosis Actions for more details. - After defining the diagnosis, add description for it. You can select an anchor and enter the description for this anchor.