blob: a4fd0e88258ee2dfedd45ac7dee41bc33aec0dd0 [file] [log] [blame]
Oleksiy Petrenkoa5eb0602018-07-26 15:12:25 +03001from ironicv1.common import send
2try:
3 from urllib.parse import urlencode
4except ImportError:
5 from urllib import urlencode
6
7
8@send('get')
9def driver_list(**kwargs):
10 url = '/drivers?{}'.format(urlencode(kwargs))
11 return url, {}
12
13
14@send('get')
15def driver_get_details(name, **kwargs):
16 url = '/drivers/{}'.format(name)
17 return url, {}
18
19
20@send('get')
21def driver_get_properties(name, **kwargs):
22 url = '/drivers/{}/properties'.format(name)
23 return url, {}
24
25
26@send('get')
27def driver_get_logical_disk_properties(name, **kwargs):
28 url = '/drivers/{}/raid/logical_disk_properties'.format(name)
29 return url, {}