1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#49: Allow selection of devices at other sites when connecting an interface

This commit is contained in:
Jeremy Stretch
2016-12-09 11:43:50 -05:00
parent a0eff04185
commit bd40f72ad5
4 changed files with 26 additions and 8 deletions

View File

@@ -1467,9 +1467,11 @@ def interfaceconnection_add(request, pk):
else:
form = forms.InterfaceConnectionForm(device, initial={
'interface_a': request.GET.get('interface', None),
'interface_a': request.GET.get('interface_a', None),
'site_b': request.GET.get('site_b', device.rack.site),
'rack_b': request.GET.get('rack_b', None),
'device_b': request.GET.get('device_b', None),
'interface_b': request.GET.get('interface_b', None),
})
return render(request, 'dcim/interfaceconnection_edit.html', {