MXS-1782: Add listener state to REST API

The state of each individual listener is now displayed in the REST
API. Created common functions for printing the listener state and took
them into use. Added the new state into MaxCtrl output.
This commit is contained in:
Markus Mäkelä
2018-04-15 09:20:43 +03:00
parent f8a91fb272
commit 32fdc3d454
4 changed files with 40 additions and 10 deletions

View File

@ -104,7 +104,8 @@ exports.builder = function(yargs) {
return getSubCollection(host, 'services/' + argv.service, 'attributes.listeners', [
{'Name': 'id'},
{'Port': 'attributes.parameters.port'},
{'Host': 'attributes.parameters.host'}
{'Host': 'attributes.parameters.host'},
{'State': 'attributes.state'}
])
})
})