diff --git a/netbox_ptov/views.py b/netbox_ptov/views.py index 5b9bfc3..18e2022 100644 --- a/netbox_ptov/views.py +++ b/netbox_ptov/views.py @@ -20,12 +20,12 @@ def golab(request): for swname in swl_in: print (swname, type(swname)) swl.append(str(swname)) - messages.add_message(request, messages.INFO, '### Switch-list:\n ' + str(swl), extra_tags='safe') + messages.add_message(request, messages.INFO, '###### Switch-list:\n ' + str(swl), extra_tags='safe') srv = form.cleaned_data['serverselect_in'].name prn = form.cleaned_data['prjname_in'] # Do something with the text (e.g., save to database) - messages.add_message(request, messages.INFO, '### GNS3 server\n' + str(srv), extra_tags='safe') + messages.add_message(request, messages.INFO, '###### GNS3 server\n' + str(srv), extra_tags='safe') result_out = str(dcnodatg.p_to_v(username=unm, passwd=pwd , servername=srv, switchlist=swl, prjname=prn)) messages.add_message(request, messages.SUCCESS, '### Project URL: \n' + result_out, extra_tags='safe') return render(request, 'golab.html', {'form': form})