def resource_commands(self, resource_id, restype, fragments): if restype == "Instrument": fragments.append( build_command("Start agent", "/cmd/start_agent?rid=%s" % resource_id)) fragments.append( build_command("Stop agent", "/cmd/stop_agent?rid=%s" % resource_id))
def resource_commands(self, resource_id, restype, fragments): if restype == "Instrument": fragments.append(build_command("Start agent", "/cmd/start_agent?rid=%s" % resource_id)) fragments.append(build_command("Stop agent", "/cmd/stop_agent?rid=%s" % resource_id))
def system_commands(self, fragments): fragments.append( build_command("Reload access policy", "/cmd/sys_reload_policy")) fragments.append( build_command("Run preload scenario", "/cmd/sys_run_preload")) fragments.append(build_command("Create user", "/cmd/sys_create_user"))
def system_commands(self, fragments): fragments.append(build_command("Reload access policy", "/cmd/sys_reload_policy")) fragments.append(build_command("Run preload scenario", "/cmd/sys_run_preload")) fragments.append(build_command("Create user", "/cmd/sys_create_user"))