mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-07 21:04:36 +00:00
#addInstanceNetwork modal box
This commit is contained in:
@@ -696,6 +696,17 @@ def instance(request, compute_id, vname):
|
||||
messages.success(request, msg)
|
||||
return HttpResponseRedirect(request.get_full_path() + '#network')
|
||||
|
||||
if 'add_network' in request.POST:
|
||||
mac = request.POST.get('add-net-mac')
|
||||
network = request.POST.get('add-net-network')
|
||||
|
||||
conn.add_network(mac, network)
|
||||
msg = _("Edit network")
|
||||
addlogmsg(request.user.username, instance.name, msg)
|
||||
msg = _("Network Devices are changed. Please reboot instance to activate.")
|
||||
messages.success(request, msg)
|
||||
return HttpResponseRedirect(request.get_full_path() + '#network')
|
||||
|
||||
if 'add_owner' in request.POST:
|
||||
user_id = int(request.POST.get('user_id', ''))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user