Commit 0a23f7d3 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Reboot required notification in networks view

parent f08ee8d8
......@@ -913,7 +913,11 @@
connect_vms: function(vms) {
_.each(vms, _.bind(function(vm){
this.network.add_vm(vm);
this.network.add_vm(vm, function() {
if (!synnefo.config.private_networks_nic_hotplug) {
vm.require_reboot();
}
});
}, this));
this.parent_view.connect_machines_view.hide();
......
......@@ -601,6 +601,7 @@
synnefo.config.vm_name_template = {{ vm_name_template|safe }};
synnefo.config.flavors_disk_templates_info = {{ flavors_disk_templates_info|safe }};
synnefo.config.vm_image_common_metadata = {{ vm_image_common_metadata|safe }};
synnefo.config.private_networks_nic_hotplug = {{ private_networks_nic_hotplug|safe }};
synnefo.config.diagnostics_update_interval = {{ diagnostics_update_interval }};
// override diagnostic messages display
......
......@@ -154,6 +154,9 @@ NETWORK_DUPLICATE_NICS = \
NETWORK_STRICT_DESTROY = \
getattr(settings,
'UI_NETWORK_STRICT_DESTROY', False)
PRIVATE_NETWORKS_NIC_HOTPLUG = \
getattr(settings,
'UI_PRIVATE_NETWORK_NIC_HOTPLUG', False)
NETWORK_ALLOW_MULTIPLE_DESTROY = \
getattr(settings,
'UI_NETWORK_ALLOW_MULTIPLE_DESTROY', False)
......@@ -240,6 +243,8 @@ def home(request):
'grouped_public_network_name':
json.dumps(GROUPED_PUBLIC_NETWORK_NAME),
'group_public_networks': json.dumps(GROUP_PUBLIC_NETWORKS),
'private_networks_nic_hotplug':
json.dumps(PRIVATE_NETWORKS_NIC_HOTPLUG),
'diagnostics_update_interval':
json.dumps(DIAGNOSTICS_UPDATE_INTERVAL),
'vm_hostname_format': json.dumps(VM_HOSTNAME_FORMAT)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment