-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redesign "Network Configuration" UI #300
Comments
More details about the "Add" button behavior can be found at #308 |
The 'Add' button is a feature provided by Ginger s390x. So I will move the issue #308 to the right project. |
@alinefm : We had trouble with python-augeas and restricted to one interface earlier. But now with code optimization multiple selection will be possible for performing certain actions. |
Sorry for the delay. On my environment the multiple selection doesn't work. If I select more than one item, the Actions drop-down is disabled. I think we should at least disable the dropdown list item (adding the class .disabled and checking it with javascript) for the matched actions (If I select only interfaces that are down, then enable the "Up" action and "Restart", if I select multiple interfaces then only Restart is enabled). If this is not possible then I agree with @alinefm mockups, the interface actions button should be moved to each line and the Add and Refresh buttons to the top left of the table. |
Hi Samuel, These actions are possible with the current implementations. I guess as Again we intentionally not allowed earlier to avoid core dump issues by Regards On 5/25/16 11:52 PM, Samuel wrote:
|
This is the proposed fix in the ML: Note that the 'Add' and 'Refresh' buttons are on the top right side of the table. This is not compliant with the rework being made in the Global Network where, in its first version, put everything on the @alinefm @chandrureddy @samhenri we can't allow 2 features at the same table to have such differences in the layout. We need a consensus of where this 'Refresh' and 'Add' buttons are going to be for both Global Network and Network Settings layout. |
@danielhb I believe the current patch sent to the ML was the final patch for Network Configuration using jQuery Bootgrid. Although the title says "redesign "Network Configuration" UI" there's still work to be done. I was waiting this patch in order to work with the DataTables port. |
@samhenri are you saying that the relocation of the 'Add' and 'Refresh' button is going to be made by you in this port to DataTables? If that's the case then I will relieve the current patch in the ML from doing it. |
I thought that this what was aligned a few scrum meetings ago, right @alinefm @chandrureddy ? |
@samhenri Ok, I'll inform that in the ML |
- Disable scroll bars when they are not needed - Enable Actions button when selecting more than one interface Required js,css,scss changes in Ginger for above mentioned issue. v1 : Fix for code review comment(icon is too close to checkbox)
Sorry, seems more changes are needed to close this issue. |
I'm currently working on this redesign but I'll keep the "Actions" drop-down since the multi-selection is now working. I think the first button should be the Actions drop-down and then the Add drop-down, like this:
I'm having problems to add a new Bond or Interface, can someone show me a valid PUT request when the user hits the "Save" button? The "Parent Interface" and "Bond Members" selects are empty for me. |
Hi, I'm unable to Add a Bond and Add a VLAN with the current code. The JSON from cfginterfaces looks like this:
I've checked the JS code and found this:
Is this correct? My CFG file doesn't seem to have the device key in BASIC_INFO. |
"BASIC_INFO" is a grouping of the following parameters:
|
@danielhb I've updated my comment. The BASIC_INFO object is there but I don't have the DEVICE, so the select / comboboxes for Bonds and VLANS are always empty. Is this correct? Can't I look for the interface name instead of the device name if the DEVICE key is not available or is it a problem with my CFG file?
|
If you're running in a Fedora/RHEL you should have the 'DEVICE' attribute in the cfgfile of a network card. It refers to the device as listed by ifconfig. You can put a workaround in the UI to find for NAME if DEVICE isn't found and see if it works though. In some distros DEVICE and NAME are interchangeable. |
Yes, i'm running Fedora 23 this time and found this. It seems is happening with some Ubuntu machines but I still need to confirm. I'll make a workaround to use the interface name if device is not available then. |
Hi @chandrureddy @alinefm @danielhb,, I'm almost finishing the redesigned panel but I have a question regarding the buttons. |
On 08/16/2016 06:03 PM, Samuel wrote:
Because the module sometimes appears as 'mlx5_core' and in others I'll be honest and say that I am not seeing 'mlx5-core' anymore but it's
|
@chandrureddy does the current implementation already checks s390x interfaces? |
@samhenri I guess so. Removal of interfaces of type 'nic' should currently works on s390x. |
I meant, how to check if the user is running a s390x or default ginger with JavaScript? |
I guess recent patch by commit 84f43d5 disables button 'Delete'. But I suppose we have to enable 'Delete' in case of s390x. May be @atreyeemukhopadhyay can help us here better as she recently done such changes and code handling in case of s390x. |
We can rely on the API call of gingerbase : /plugins/gingerbase/host to know about the architecture. For more details : https://github.com/kimchi-project/gingerbase/blob/master/docs/API.md In case of s390x you get the following details: Basic Information |
Signed-off-by: Samuel Guimarães <[email protected]>
There are a few issues in this "Network Configuration" section:
When selecting this Add button, a dialog to choose the network type is displayed (similar to what we have when adding a new Template in Kimchi). According to selected type, display the appropriated inputs.
Said that, my suggestion is do change this section to something like below:
When selecting the Actions menu, the list of available actions will be listed: Down/Up, Restart, Settings, Delete.
All the widgets used for this mockup MUST follow Wok style. The idea of this proposal is to have something similar to what we have on Network tab in Kimchi.
The text was updated successfully, but these errors were encountered: