Revision 49e3c862
b/snf-cyclades-app/synnefo/logic/management/commands/stats-cyclades.py | ||
---|---|---|
142 | 142 |
public_ips = networks.pop("public_ips") |
143 | 143 |
networks["total_public_ips"] = public_ips.get("total", 0) |
144 | 144 |
networks["free_public_ips"] = public_ips.get("free", 0) |
145 |
fields = ["total", "ACTIVE", "DELETED", "ERROR"] |
|
145 |
fields = ["total", "ACTIVE", "DELETED", "ERROR", "total_public_ips", |
|
146 |
"free_public_ips"] |
|
146 | 147 |
table = columns_from_fields(fields, networks) |
147 | 148 |
pprint_table(stdout, table, None, |
148 | 149 |
title="Statistics for Virtual Networks") |
Also available in: Unified diff