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