Revision 9115d567 snf-cyclades-app/synnefo/api/management/commands/network-list.py
b/snf-cyclades-app/synnefo/api/management/commands/network-list.py | ||
---|---|---|
94 | 94 |
"vms": (get_machines, "Number of connected servers"), |
95 | 95 |
"backends": (get_backends, "IDs of Ganeti backends that the network is" |
96 | 96 |
" connected to"), |
97 |
"pool": ("floating_ip_pool", "Whether the network is a floating" |
|
98 |
" IP pool"), |
|
97 | 99 |
} |
98 | 100 |
|
99 | 101 |
fields = ["id", "name", "user.uuid", "state", "public", "subnet.ipv4", |
100 |
"gateway.ipv4", "link", "mac_prefix", "dhcp", "drained"] |
|
102 |
"gateway.ipv4", "link", "mac_prefix", "dhcp", "drained", "pool"]
|
|
101 | 103 |
|
102 | 104 |
def handle_args(self, *args, **options): |
103 | 105 |
if options["public"]: |
Also available in: Unified diff