parameters: ()
return_statement: return r_code == 0
docstring: Checks if the openvswitch service is running in the host.
  
      Returns:
          bool: True if openvswitch service is running, False otherwise.
docstring_summary: Checks if the openvswitch service is running in the host.
docstring_tokens: Checks if the openvswitch service is running in the host .
function: def is_openvswitch_running():
      """Checks if the openvswitch service is running in the host.
  
      Returns:
          bool: True if openvswitch service is running, False otherwise.
  
      """
      cmd = ['systemctl', 'is-active', 'openvswitch', '--quiet']
      _, _, r_code = run_command(cmd, silent=True)
      return r_code == 0
function_tokens: def is_openvswitch_running ( ) : cmd = [ 'systemctl' , 'is-active' , 'openvswitch' , '--quiet' ] _ , _ , r_code = run_command ( cmd , silent = True ) return r_code == 0