Changeset 6230
- Timestamp:
- Aug 22, 2008, 10:40:57 PM (17 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TODO
r6215 r6230 1 1 ** Showstoppers 2 2 -> Document database layout and choices 3 @rick, I think this todo van be closed, because exodusmodels.dot is available 3 4 4 5 * Input fields validation … … 9 10 * Add reverse lookup fields for named.conf 10 11 * Fix dhcpd.conf template 12 * Add ssh_keys 13 * Check urls and response redirects; Make urls depend on urls.py instead of hardcoding them into 14 views.py and the templates. See: 15 http://www.djangoproject.com/documentation/url_dispatch/#reverse 11 16 * Interface cleanups: 12 17 ** option to edit/delete fields -
exodus/views.py
r6215 r6230 72 72 form = addInterlinkForm(request.POST) 73 73 if form.is_valid(): 74 instance = form.save(commit=False) 75 # Get this code working and clean it up afterwards 76 # check if we have two different ifaces from two different nodes 77 # Should add a error message if they are from the same node 78 79 if instance.iface1.node.id != instance.iface2.node.id: 80 print 'Iface 1 and 2 are on a different node' 81 # check if they have the same mode 82 if instance.iface1.type == instance.iface2.type: 83 print '''these ifaces are of the same type''' 84 instance.same=True 85 print instance.same 86 87 if str(instance.iface1.type) == '11b' or str(instance.iface1.type) == '11g': 88 print '''it's 11b or g''' 89 90 #if (instance.iface1.type == '11b' | instance.iface2.type == '11b' ) & 91 # (instance.iface1.type == '11g' || instance.iface2.type == '11g'): 92 # print '''11b and 11g are compatible''' 93 #if wifi: check master and managed states for existings NICs/Interlinks 94 #Generate SSID 95 #Generate ips and netmask 96 #Save form 97 #return HttpResponseRedirect("/exodus/") 98 else: 99 newForm = Interlink(ip1='172.16.0.0', ip2='172.16.0.0') 100 form = addInterlinkForm(instance = newForm) 101 return render_to_response('addinterlink.html',{'form': form}) 102 103 104 def addinterlink_old(request): 105 if request.POST: 106 form = addInterlinkForm(request.POST) 107 if form.is_valid(): 74 108 instance = form.save(commit=False) 75 109 if str(instance.iface1.type) != "eth": 110 print instance.iface.name 76 111 instance.ssid = newSSIDName(instance.node, 77 112 instance.iface,'il')
Note:
See TracChangeset
for help on using the changeset viewer.