mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 01:10:08 +01:00
keyfile: ignore ipv4.address-labels
For now they are only supported by ifcfg-rh
This commit is contained in:
parent
73e011d0b6
commit
12d3a7908e
1 changed files with 14 additions and 0 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue