Revision 501d0f38

b/snf-cyclades-app/synnefo/management/pprint.py
164 164
                            ("Size", size),
165 165
                            ("Available", available)])
166 166
        pprint_table(stdout, info.items(), None, separator=" | ", title=None)
167
        pprint_pool(None, bitarray_to_map(pool.available[:size]), 80, stdout)
167

  
168
        reserved = [pool.index_to_value(index)
169
                    for index, ip in enumerate(pool.reserved[:size])
170
                    if ip is False]
171

  
172
        if reserved != []:
173
            stdout.write("\nExternally Reserved IPs:\n\n")
174
            stdout.write(", ".join(reserved) + "\n")
175

  
176
        ip_sum = pool.available[:size] & pool.reserved[:size]
177
        pprint_pool(None, bitarray_to_map(ip_sum), 80, stdout)
168 178
        stdout.write("\n\n")
169 179

  
170 180

  

Also available in: Unified diff