Open IvanChupin opened 1 month ago
The following changes have been verified:
CONTROLLER DETAILS
and INVENTORY DETAILS
sections are displayed + optional: Discrepancy tab(states mismatch).“CONTROLLER DETAILS”
section is displayed + Discrepancy tab “*Note: Switch doesn’t exist in the inventory”.
“INVENTORY DETAILS”
section is displayed + Discrepancy tab“*Note: Switch doesn’t exist in the controller”
.‘There is another switch with the same switch ID in the inventory service.’
NON-EXISTING
switch details page, the redirection to the ‘Switches’
page is executed.The following changes have been verified:
CONTROLLER DETAILS
and INVENTORY DETAILS
sections are displayed + optional: Discrepancy tab(states mismatch).“CONTROLLER DETAILS”
section is displayed + Discrepancy tab “*Note: Switch doesn’t exist in the inventory”.
“INVENTORY DETAILS”
section is displayed + Discrepancy tab“*Note: Switch doesn’t exist in the controller”
.‘There is another switch with the same switch ID in the inventory service.’
NON-EXISTING
switch details page, the redirection to the ‘Switches’
page is executed.
This fix change the logic of showing the orange triangle that shows the discrepancies for switch name that was received from controller(Northbound API) and from inventory service.
With the new logic, we do not have the triangle. Now on the switch-detail page we have two parts that represents the switch details data from northbound and switch details data from inventory service(switch-store).
Before the fix:
After the fix: Example of switch-detail page where switch exist only in Controller.
Example of switch-detail page where switch exist only in Inventory.
Example of switch-detail page where switch exist in controller and in inventory, but with some discrepancies:
Example of switch-detail page, where switch(with switch_id=A) exist in controller and multiple switches with the same switch_id exist in inventory service(not usual behaviour, but possible)
Also it should not show any discrepancy tab in case if we do not have inventory-service connected(setup) to Kilda-gui.
Discrepancy tab shows only the information about discrepancy in switch-state, as it was in an old logic.
In order to test this, you need to use rigel. I verified it on my local vm slightly tweaking the needed part of code. But for Rigel we do not need this tweak.
Possible test cases: Switch A exists only in Controller. Switch A exists only in Inventory service. Switch A exists both in Controller and Inventory service. Switch A exists both in Controller and Inventory service with different state.
closes https://github.com/telstra/open-kilda/issues/5661