Changeset 1252
- Timestamp:
- 12/19/06 13:53:54 (6 years ago)
- File:
-
- 1 edited
-
ccsd/private/modules/ccs_dhcp.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ccsd/private/modules/ccs_dhcp.py
r1135 r1252 140 140 raise dhcp_error("DHCP already enabled on interface!") 141 141 142 # Try and setup a default pool from 129 -> 253143 142 link = getInterfaceLink(self._session_id, interface_id) 144 pool_max = link._maxIP(True) 145 pool_min = link._minIP(True, 128) 143 length = cidrToLength(link["network_address"]) 144 if length == 24: 145 # Try and setup a default pool from 129 -> 253 146 pool_max = link._maxIP(True) 147 pool_min = link._minIP(True, 128) 148 else: 149 # Try and setup a default pool using the whole range 150 pool_max = link._maxIP(True) 151 pool_min = link._minIP(True) 146 152 # Check all IPs in the pool are free 147 153 ip = ipnum(pool_min)
Note: See TracChangeset
for help on using the changeset viewer.
