|
@@ -65,17 +65,19 @@ class BaseStorage(object):
|
|
|
|
|
|
for node in self.get_nodes():
|
|
|
nodes += 1
|
|
|
- if self.get_nodestatus(node=node) == 'active':
|
|
|
- nodes_active += 1
|
|
|
|
|
|
- sum_clients += node.get('clientcount', 0)
|
|
|
nodemacs = [x for x in node.get('macs', [])]
|
|
|
if 'mac' in node:
|
|
|
nodemacs.append(node['mac'])
|
|
|
- for client in node.get('clients', []):
|
|
|
- if client in nodemacs:
|
|
|
- continue
|
|
|
- clients.add(client)
|
|
|
+
|
|
|
+ if self.get_nodestatus(node=node) == 'active':
|
|
|
+ nodes_active += 1
|
|
|
+ sum_clients += node.get('clientcount', 0)
|
|
|
+
|
|
|
+ for client in node.get('clients', []):
|
|
|
+ if client in nodemacs:
|
|
|
+ continue
|
|
|
+ clients.add(client)
|
|
|
|
|
|
return {
|
|
|
'clients_sum': sum_clients,
|