self.name(),{'boot_state':'safeboot'})
return True
- def nodestate_safeboot (self):
+ def nodestate_boot (self):
self.test_plc.apiserver.UpdateNode(self.test_plc.auth_root(),
self.name(),{'boot_state':'boot'})
return True
+
+ def nodestate_show (self):
+ state=self.test_plc.apiserver.GetNodes(self.test_plc.auth_root(), self.name(), ['boot_state'])[0]['boot_state']
+ print self.name(),':',state
+ return True
def configure_qemu(self):
if not self.is_qemu():
'clean_sites', 'clean_nodes', 'clean_slices', 'clean_keys', SEP,
'clean_leases', 'list_leases', SEP,
'populate' , SEP,
- 'nodestate_safeboot','nodestate_boot','list_all_qemus', 'list_qemus', 'kill_qemus', SEP,
+ 'nodestate_show','nodestate_safeboot','nodestate_boot', SEP,
+ 'list_all_qemus', 'list_qemus', 'kill_qemus', SEP,
'plcclean_sfa', 'dbclean_sfa', 'stop_sfa','uninstall_sfa', 'clean_sfi', SEP,
'db_dump' , 'db_restore', SEP,
'standby_1 through 20',SEP,
pass
@node_mapper
def nodestate_boot (self):
- "all nodes: mark PLCAPI boot_state as safeboot"
+ "all nodes: mark PLCAPI boot_state as boot"
+ pass
+ @node_mapper
+ def nodestate_show (self):
+ "all nodes: show PLCAPI boot_state"
pass
@node_mapper
def export_qemu (self):