Add module and states for Ironic API v1
Change-Id: I832381955e608875e87680211e8e7a3836facb40
Related-Prod: PROD-21813
diff --git a/_modules/ironicv1/drivers.py b/_modules/ironicv1/drivers.py
new file mode 100644
index 0000000..a4fd0e8
--- /dev/null
+++ b/_modules/ironicv1/drivers.py
@@ -0,0 +1,29 @@
+from ironicv1.common import send
+try:
+ from urllib.parse import urlencode
+except ImportError:
+ from urllib import urlencode
+
+
+@send('get')
+def driver_list(**kwargs):
+ url = '/drivers?{}'.format(urlencode(kwargs))
+ return url, {}
+
+
+@send('get')
+def driver_get_details(name, **kwargs):
+ url = '/drivers/{}'.format(name)
+ return url, {}
+
+
+@send('get')
+def driver_get_properties(name, **kwargs):
+ url = '/drivers/{}/properties'.format(name)
+ return url, {}
+
+
+@send('get')
+def driver_get_logical_disk_properties(name, **kwargs):
+ url = '/drivers/{}/raid/logical_disk_properties'.format(name)
+ return url, {}