diff options
author | Thomas Graf <tgraf@redhat.com> | 2011-10-18 13:48:42 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2011-11-09 23:16:31 -0600 |
commit | a2a0d788182b20b23abc6b33ba1e344084b00b11 (patch) | |
tree | 497846a66befefdf45bfd6299a9fc3f7e3e60e9e /libnm-util/nm-connection.h | |
parent | d0b71957e788ad820e555f52f99e5ac836e237f8 (diff) | |
download | NetworkManager-a2a0d788182b20b23abc6b33ba1e344084b00b11.tar.gz |
bonding: settings parser for ifcfg plugin + NMSettingBond class
Introduced a new TYPE=bond for ifcfg-rh configuration files.
Alternatively BONDING_MASTER=yes can be specified instead of
setting the type explicitely to maintain backwards compatibility
with existing configuration files.
Bonding device files require a DEVICE= line to be present which
specifies the virtual bonding interface in the kernel. We do not
allow auto-generation of the name in order to keep confusion to
a minimum when reusing existing bonding interfaces.
The BONDING_OPTS= parameter can be used to specify various bonding
related options, such as:
- mode
- miimon
- updelay
- downdelay
- arp_interval
- arp_ip_target
By default, the NMSettingBond class uses a miimon value of 100 which
seems like a sensible default value for 99% of all configurations.
If this is not suitable, an arp_ip_target needs to be specified
manually.
A writer is not yet implemented.
Changes v2:
- renamed DeviceName property to InterfaceName
- moved code to validate device name to dev_valid_name() for future use
Signed-off-by: Thomas Graf <tgraf@redhat.com>
Diffstat (limited to 'libnm-util/nm-connection.h')
-rw-r--r-- | libnm-util/nm-connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-util/nm-connection.h b/libnm-util/nm-connection.h index 069dc84c16..60141384bb 100644 --- a/libnm-util/nm-connection.h +++ b/libnm-util/nm-connection.h @@ -32,6 +32,7 @@ #include <nm-setting-8021x.h> #include <nm-setting-bluetooth.h> +#include <nm-setting-bond.h> #include <nm-setting-cdma.h> #include <nm-setting-connection.h> #include <nm-setting-gsm.h> @@ -183,6 +184,7 @@ const char * nm_connection_get_id (NMConnection *connection); NMSetting8021x * nm_connection_get_setting_802_1x (NMConnection *connection); NMSettingBluetooth * nm_connection_get_setting_bluetooth (NMConnection *connection); +NMSettingBond * nm_connection_get_setting_bond (NMConnection *connection); NMSettingCdma * nm_connection_get_setting_cdma (NMConnection *connection); NMSettingConnection * nm_connection_get_setting_connection (NMConnection *connection); NMSettingGsm * nm_connection_get_setting_gsm (NMConnection *connection); |