When you add diagnosis to a Network Intent, you can define a variety of diagnosis logic to make the NI more flexible and verify the network design more accurately.
A variable can be a single variable such as $state or a table (paragraph) variable. For the table/paragraph variable, you can select the Loop Table Rows for the system to loop through each table's row. Take the OSPF neighbor table as an example. There are seven lines of neighbor information in the CLI result (the blue rows on the left). The diagnosis execution will determine whether the state contains full line by line (7 lines in total).
Different types of variables have various operations such as Equals, Not Equal to, Contains, etc.
▪Current: retrieved from the live data.
▪Baseline: the baseline data.
▪Last: the system will retrieve the data twice and compare the current data with the last data.