keyfile: ignore ipv4.address-labels

For now they are only supported by ifcfg-rh
This commit is contained in:
Dan Winship 2014-03-24 15:56:01 -04:00
parent 73e011d0b6
commit 12d3a7908e

View file

@ -194,6 +194,17 @@ ip4_addr_writer (GKeyFile *file,
write_ip4_values (file, setting_name, array, FALSE);
}
static void
ip4_addr_label_writer (GKeyFile *file,
const char *keyfile_dir,
const char *uuid,
NMSetting *setting,
const char *key,
const GValue *value)
{
/* skip */
}
static void
ip4_route_writer (GKeyFile *file,
const char *keyfile_dir,
@ -773,6 +784,9 @@ static KeyWriter key_writers[] = {
{ NM_SETTING_IP4_CONFIG_SETTING_NAME,
NM_SETTING_IP4_CONFIG_ADDRESSES,
ip4_addr_writer },
{ NM_SETTING_IP4_CONFIG_SETTING_NAME,
"address-labels",
ip4_addr_label_writer },
{ NM_SETTING_IP6_CONFIG_SETTING_NAME,
NM_SETTING_IP6_CONFIG_ADDRESSES,
ip6_addr_writer },