In Contrail GUI, Networks List, Network Selection is Not Persistent after a Network Policy Was Assigned to a Network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I am using Contrail version 3.2.4.0 on an CentOS 7.3 server. I have 4 VMs on the respective server: 1st VM is Contrail Controller node, 2nd VM is OpenStack node and 3rd and 4th VM are Contrail Compute nodes.
I have created 3 virtual networks, named Net-1, Net-2 and Net-3 in this order, and a network policy, named poli1.
Please see the attached first-step.jpg.
In Contrail GUI, in Configure -> Networking -> Networks, I select the 2nd network, Net-2, I edit it and assign to it the network policy poli1. Please see the attached second-step.jpg.
After I click on the Save button, in the list of networks, Net-2 is not anymore on the 2nd position as it was initially before assigning to it a network policy.
Net-2 is on the last position in the list of networks, and on the 2nd position now it is Net-3. So, Net-2 has moved from its original position in the list of networks, but the network selection did not moved accordingly. Now, Net-3 is mistakenly selected instead of Net-2. Please see the attached third-step.jpg.
I don't quite understand why after a network is modified and the Save button is pressed, the respective network has to be moved at the bottom of the network list.
At the beginning, I thought that the fix for this bug was to move the network selection at the end of the list, where the network is now located.
However, this fix will not work if the network list is sorted after network name: user has the network list sorted, then the user adds a network policy to a network. Then, the respective network moves at the bottom of the network list and the sorting is not preserved.
The fix would be to keep the network at the same position in the network list.