Support nodeCount in API list and status
Change-Id: I6fee75bbbed595cd1fd76fb31a3ec8caf3365e38
This commit is contained in:
@@ -102,9 +102,9 @@ class LibraAPI(object):
|
|||||||
else:
|
else:
|
||||||
resp, body = self._get('/loadbalancers')
|
resp, body = self._get('/loadbalancers')
|
||||||
column_names = ['Name', 'ID', 'Protocol', 'Port', 'Algorithm',
|
column_names = ['Name', 'ID', 'Protocol', 'Port', 'Algorithm',
|
||||||
'Status', 'Created', 'Updated']
|
'Status', 'Created', 'Updated', 'Node Count']
|
||||||
columns = ['name', 'id', 'protocol', 'port', 'algorithm', 'status',
|
columns = ['name', 'id', 'protocol', 'port', 'algorithm', 'status',
|
||||||
'created', 'updated']
|
'created', 'updated', 'nodeCount']
|
||||||
self._render_list(column_names, columns, body['loadBalancers'])
|
self._render_list(column_names, columns, body['loadBalancers'])
|
||||||
|
|
||||||
def status_lb(self, args):
|
def status_lb(self, args):
|
||||||
@@ -112,10 +112,11 @@ class LibraAPI(object):
|
|||||||
column_names = ['ID', 'Name', 'Protocol', 'Port', 'Algorithm',
|
column_names = ['ID', 'Name', 'Protocol', 'Port', 'Algorithm',
|
||||||
'Status', 'Status Description', 'Created', 'Updated',
|
'Status', 'Status Description', 'Created', 'Updated',
|
||||||
'IPs', 'Nodes', 'Persistence Type',
|
'IPs', 'Nodes', 'Persistence Type',
|
||||||
'Connection Throttle']
|
'Connection Throttle', 'Node Count']
|
||||||
columns = ['id', 'name', 'protocol', 'port', 'algorithm', 'status',
|
columns = ['id', 'name', 'protocol', 'port', 'algorithm', 'status',
|
||||||
'statusDescription', 'created', 'updated', 'virtualIps',
|
'statusDescription', 'created', 'updated', 'virtualIps',
|
||||||
'nodes', 'sessionPersistence', 'connectionThrottle']
|
'nodes', 'sessionPersistence', 'connectionThrottle',
|
||||||
|
'nodeCount']
|
||||||
if 'sessionPersistence' not in body:
|
if 'sessionPersistence' not in body:
|
||||||
body['sessionPersistence'] = 'None'
|
body['sessionPersistence'] = 'None'
|
||||||
if 'connectionThrottle' not in body:
|
if 'connectionThrottle' not in body:
|
||||||
|
Reference in New Issue
Block a user