networking_set_enabled


Description:

[ Version ( deprecated = true , deprecated_since = "1.22" ) ]
public bool networking_set_enabled (bool enabled) throws Error

Warning: networking_set_enabled is deprecated since 1.22.

Enables or disables networking.

Note:

Use the async command dbus_call on nm_dbus_path , nm_dbus_interface to call "Enable" with "(b)" arguments and no return value.

When networking is disabled, all controlled interfaces are disconnected and deactivated. When networking is enabled, all controlled interfaces are available for activation.

Parameters:

this

a Client

enabled

true to set networking enabled, false to set networking disabled

Returns:

true on success, false otherwise