Changeset 6478
- Timestamp:
- Dec 23, 2008, 12:21:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/exodus/forms.py
r6477 r6478 207 207 raise forms.ValidationError( 208 208 "Not enough free ips for this node.") 209 209 210 new_ip.ips.reverse() 210 211 link.ip = new_ip.ips.pop() … … 213 214 ip = new_ip.ips.pop() 214 215 self.data['netmask'] = netmask 215 # filter out own interface216 for i in (i for i in all_links if not i.id == pk):216 # filter out own and master interface 217 for i in (i for i in all_links if not i.id in (pk, link.id)): 217 218 i.ip = new_ip.ips.pop() 218 219 i.netmask = netmask
Note:
See TracChangeset
for help on using the changeset viewer.