Yulia Portnova | 21289b2 | 2015-03-18 15:21:43 +0200 | [diff] [blame] | 1 | import node |
Yulia Portnova | 3556a06 | 2015-03-17 16:30:11 +0200 | [diff] [blame] | 2 | import fuel_rest_api |
3 | |||||
4 | |||||
5 | def discover_fuel_nodes(root_url, credentials): | ||||
6 | """Discover Fuel nodes""" | ||||
7 | connection = fuel_rest_api.KeystoneAuth(root_url, credentials) | ||||
8 | fi = fuel_rest_api.FuelInfo(connection) | ||||
9 | |||||
Yulia Portnova | 21289b2 | 2015-03-18 15:21:43 +0200 | [diff] [blame] | 10 | return [node.Node(n.ip, n.get_roles()) for n in fi.nodes] |