1 from PLC.Faults import *
2 from PLC.Method import Method
3 from PLC.Parameter import Parameter, Mixed
4 from PLC.BootStates import BootState, BootStates
5 from PLC.Auth import Auth
7 class DeleteBootState(Method):
9 Deletes a node boot state.
11 WARNING: This will cause the deletion of all nodes in this boot
14 Returns 1 if successful, faults otherwise.
21 BootState.fields['boot_state']
24 returns = Parameter(int, '1 if successful')
26 def call(self, auth, name):
27 boot_states = BootStates(self.api, [name])
29 raise PLCInvalidArgument, "No such boot state"
30 boot_state = boot_states.values()[0]