Commit 3258a9c9 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

cyclades: Display IPs in stats-cyclades

Display free and total public IPv4 addresses when pretty-printing
Cyclades stats.
parent 2a882371
......@@ -142,7 +142,8 @@ def pretty_print_stats(stats, stdout):
public_ips = networks.pop("public_ips")
networks["total_public_ips"] = public_ips.get("total", 0)
networks["free_public_ips"] = public_ips.get("free", 0)
fields = ["total", "ACTIVE", "DELETED", "ERROR"]
fields = ["total", "ACTIVE", "DELETED", "ERROR", "total_public_ips",
"free_public_ips"]
table = columns_from_fields(fields, networks)
pprint_table(stdout, table, None,
title="Statistics for Virtual Networks")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment