Repository: libcloud Updated Branches: refs/heads/trunk 53591b7a8 -> c4cfea6e1
linode stop node Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5bd4e45e Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5bd4e45e Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5bd4e45e Branch: refs/heads/trunk Commit: 5bd4e45e431c80b3aa72cf38ad30ad4c849f2398 Parents: f90a251 Author: Markos Gogoulos <[email protected]> Authored: Wed Feb 15 17:51:03 2017 +0200 Committer: Anthony Shaw <[email protected]> Committed: Sat Apr 1 11:47:22 2017 +1100 ---------------------------------------------------------------------- libcloud/compute/drivers/linode.py | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/5bd4e45e/libcloud/compute/drivers/linode.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/linode.py b/libcloud/compute/drivers/linode.py index 94ac2a0..24d086c 100644 --- a/libcloud/compute/drivers/linode.py +++ b/libcloud/compute/drivers/linode.py @@ -127,6 +127,15 @@ class LinodeNodeDriver(NodeDriver): self.connection.request(API_ROOT, params=params) return True + def ex_stop_node(self, node): + """ + Shutdown the given Linode + + """ + params = {"api_action": "linode.shutdown", "LinodeID": node.id} + self.connection.request(API_ROOT, params=params) + return True + def reboot_node(self, node): """ Reboot the given Linode
