Changeset 6231 for exodus/views.py
- Timestamp:
- Aug 23, 2008, 12:44:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exodus/views.py
r6230 r6231 9 9 10 10 from exodus.models import * 11 from exodus.wllogic import freemasterip, newSSIDName 11 from exodus.wllogic import freemasterip, newSSIDName, freeinterlinkip 12 12 13 13 class AddLocationForm(forms.ModelForm): … … 83 83 print '''these ifaces are of the same type''' 84 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''' 85 if str(instance.iface1.type) == '11b' and str(instance.iface2.type) == '11g': 86 instance.same=True 87 print '11b + 11g' 88 if str(instance.iface1.type) == '11g' and str(instance.iface2.type) == '11b': 89 instance.same=True 90 print '11g + 11b' 91 #Generate IP addresses 92 if instance.same == True: 93 instance.ip1,instance.ip2 = freeinterlinkip() 94 netmask = '30' 95 instance.save() 96 93 97 #if wifi: check master and managed states for existings NICs/Interlinks 94 98 #Generate SSID 99 # add descriptions 95 100 #Generate ips and netmask 96 101 #Save form
Note:
See TracChangeset
for help on using the changeset viewer.