File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ ) .
5
5
This project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 1.43.0] - 2020-02-24
8
+ ### Added
9
+ - Support for reinstalling the operating system to a device, including changing the operating system.
10
+
7
11
## [ 1.42.0] - 2020-02-14
8
12
### Added
9
13
- Capturing of available_in to Plan
Original file line number Diff line number Diff line change @@ -65,6 +65,18 @@ def update(self):
65
65
def delete (self ):
66
66
return self .manager .call_api ("devices/%s" % self .id , type = "DELETE" )
67
67
68
+ def reinstall (self , operating_system = None , ipxe_script_url = None ):
69
+ params = {"type" : "reinstall" }
70
+ if operating_system is not None :
71
+ params ["operating_system" ] = operating_system
72
+ if ipxe_script_url is not None :
73
+ params ["operating_system" ] = "custom_ipxe"
74
+ params ["ipxe_script_url" ] = ipxe_script_url
75
+
76
+ return self .manager .call_api (
77
+ "devices/%s/actions" % self .id , type = "POST" , params = params
78
+ )
79
+
68
80
def power_off (self ):
69
81
params = {"type" : "power_off" }
70
82
return self .manager .call_api (
You can’t perform that action at this time.
0 commit comments