def expand_ip_block(block):
 addresses = []
 ip_r = block.base_ip.split('.')
 last_quad = int(ip_r[3])
 address_root = ('%s.%s.%s.' % (ip_r[0], ip_r[1], ip_r[2]))
 for i in range(int(block.size)):
  addresses.append((address_root + str((last_quad + i))))
 return addresses

def expand_ip_block ( block ) : addresses = [ ] ip_r = block . base_ip . split ( '.' ) last_quad = int ( ip_r [ 3 ] ) address_root = ( '%s.%s.%s.' % ( ip_r [ 0 ] , ip_r [ 1 ] , ip_r [ 2 ] ) ) for i in range ( int ( block . size ) ) : addresses . append ( ( address_root + str ( ( last_quad + i ) ) ) ) return addresses
expand public ip block to show all addresses .