Changeset 6481
- Timestamp:
- Dec 25, 2008, 10:29:30 PM (16 years ago)
- Location:
- trunk/exodus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/models.py
r6479 r6481 97 97 link = models.ForeignKey('self', blank=True, null=True) 98 98 ip = models.IPAddressField(unique=True, blank=True) 99 netmask = models.IntegerField( )99 netmask = models.IntegerField(null=True, blank=True) 100 100 ssid = models.CharField(max_length=50, blank=True, null=True) 101 101 mode = models.CharField(max_length=10, choices=WIFI_MODE_CHOICES, -
trunk/exodus/views.py
r6432 r6481 8 8 9 9 from exodus.models import * 10 from exodus.wllogic import free_master_ip, new_ssid, add_interlink_ip, \ 11 free_interlink_ip 10 from exodus.wllogic import free_master_ip, new_ssid 12 11 13 12 from exodus.utils import pdebug … … 205 204 self.is_changed.has_key('netmask'): 206 205 if not _instance.link: 207 _instance.ip = free_interlink_ip(_instance) 206 #_instance.ip = free_interlink_ip(_instance) 207 pass 208 208 209 else: 209 _instance.ip = add_interlink_ip(_instance.link) 210 #_instance.ip = add_interlink_ip(_instance.link) 211 pass 210 212 211 213 # XXX: Change in netmask requires full range of netmask changes \
Note:
See TracChangeset
for help on using the changeset viewer.