Changeset 6478


Ignore:
Timestamp:
Dec 23, 2008, 12:21:22 AM (16 years ago)
Author:
roland
Message:

Fixed a bug in which the master didn't get the lowest address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/exodus/forms.py

    r6477 r6478  
    207207                    raise forms.ValidationError(
    208208                        "Not enough free ips for this node.")
     209
    209210                new_ip.ips.reverse()
    210211                link.ip = new_ip.ips.pop()
     
    213214                ip = new_ip.ips.pop()
    214215                self.data['netmask'] = netmask
    215                 # filter out own interface
    216                 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)):
    217218                    i.ip = new_ip.ips.pop()
    218219                    i.netmask = netmask
Note: See TracChangeset for help on using the changeset viewer.