()
return r_code == 0
Checks if the openvswitch service is running in the host.

    Returns:
        bool: True if openvswitch service is running, False otherwise.
Checks if the openvswitch service is running in the host.
Checks if the openvswitch service is running in the host .
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
def is_openvswitch_running ( ) : cmd = [ 'systemctl' , 'is-active' , 'openvswitch' , '--quiet' ] _ , _ , r_code = run_command ( cmd , silent = True ) return r_code == 0