コード例 #1
0
 def _device_is_rebooting(self):
     command = dict(command="tmsh run /util bash -c 'runlevel'")
     result = run_commands(self.module, command)
     import q
     q.q(result)
     if any(x for x in result if '6' in x):
         return True
     return False
コード例 #2
0
 def _is_mprov_running_on_device(self):
     command = dict(
         command="tmsh run /util bash -c 'ps aux | grep \'[m]prov\''")
     result = run_commands(self.module, command)
     import q
     q.q(result)
     if any(x for x in result if len(x) > 1):
         return True
     return False
コード例 #3
0
 def execute_on_device(self, commands):
     result = run_commands(self.module, commands)
     return result
コード例 #4
0
ファイル: bigip_command.py プロジェクト: awiddersheim/ansible
 def execute_on_device(self, commands):
     result = run_commands(self.module, commands)
     return result