Esempio n. 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))
Esempio n. 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))
Esempio n. 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"))
Esempio n. 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"))