Пример #1
0
 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))
Пример #2
0
 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))
Пример #3
0
 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"))
Пример #4
0
 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"))