diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-08-01 20:08:43 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-08-01 20:08:43 +0000 |
| commit | f0402709fbfaf2c6df67efc4865b8b6c9081457d (patch) | |
| tree | 1e26a6cc46d389d79d041c582b87b4307c4ba5fe /ironicclient/v1/node.py | |
| parent | 2081cc8665727a914246d13f6f89b70fd94a3ab7 (diff) | |
| parent | 31ac1c9f82a2cf016b29628935f31395f58419b5 (diff) | |
| download | python-ironicclient-0.1.5.tar.gz | |
Diffstat (limited to 'ironicclient/v1/node.py')
| -rw-r--r-- | ironicclient/v1/node.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ironicclient/v1/node.py b/ironicclient/v1/node.py index 13d3c80..5e168fd 100644 --- a/ironicclient/v1/node.py +++ b/ironicclient/v1/node.py @@ -190,3 +190,16 @@ class NodeManager(base.Manager): path = "%s/states/console" % node_uuid target = {'enabled': enabled} return self._update(self._path(path), target, method='PUT') + + def set_boot_device(self, node_uuid, boot_device, persistent=False): + path = "%s/management/boot_device" % node_uuid + target = {'boot_device': boot_device, 'persistent': persistent} + return self._update(self._path(path), target, method='PUT') + + def get_boot_device(self, node_uuid): + path = "%s/management/boot_device" % node_uuid + return self.get(path).to_dict() + + def get_supported_boot_devices(self, node_uuid): + path = "%s/management/boot_device/supported" % node_uuid + return self.get(path).to_dict() |
