diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-12-05 10:13:34 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2020-01-14 09:49:01 +0100 |
commit | f4ced16791c9047def950ecb06b2b86834d882de (patch) | |
tree | de158033ea03bcafbfbd624b3bde626b4525682e /shared | |
parent | 56e91b11a24f87e57ee0ae9535c081796e4bdeb9 (diff) | |
download | NetworkManager-f4ced16791c9047def950ecb06b2b86834d882de.tar.gz |
libnm-core,cli: add VRF setting
Add new VRF setting and connection types to libnm-core and support
them in nmcli.
Diffstat (limited to 'shared')
-rw-r--r-- | shared/nm-meta-setting.c | 7 | ||||
-rw-r--r-- | shared/nm-meta-setting.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/shared/nm-meta-setting.c b/shared/nm-meta-setting.c index af5aa8429d..cf6309b168 100644 --- a/shared/nm-meta-setting.c +++ b/shared/nm-meta-setting.c @@ -46,6 +46,7 @@ #include "nm-setting-user.h" #include "nm-setting-vlan.h" #include "nm-setting-vpn.h" +#include "nm-setting-vrf.h" #include "nm-setting-vxlan.h" #include "nm-setting-wifi-p2p.h" #include "nm-setting-wimax.h" @@ -387,6 +388,12 @@ const NMMetaSettingInfo nm_meta_setting_infos[] = { .setting_name = NM_SETTING_VPN_SETTING_NAME, .get_setting_gtype = nm_setting_vpn_get_type, }, + [NM_META_SETTING_TYPE_VRF] = { + .meta_type = NM_META_SETTING_TYPE_VRF, + .setting_priority = NM_SETTING_PRIORITY_HW_BASE, + .setting_name = NM_SETTING_VRF_SETTING_NAME, + .get_setting_gtype = nm_setting_vrf_get_type, + }, [NM_META_SETTING_TYPE_VXLAN] = { .meta_type = NM_META_SETTING_TYPE_VXLAN, .setting_priority = NM_SETTING_PRIORITY_HW_BASE, diff --git a/shared/nm-meta-setting.h b/shared/nm-meta-setting.h index 3976bfe19b..8b0c7d35a5 100644 --- a/shared/nm-meta-setting.h +++ b/shared/nm-meta-setting.h @@ -142,6 +142,7 @@ typedef enum { NM_META_SETTING_TYPE_USER, NM_META_SETTING_TYPE_VLAN, NM_META_SETTING_TYPE_VPN, + NM_META_SETTING_TYPE_VRF, NM_META_SETTING_TYPE_VXLAN, NM_META_SETTING_TYPE_WIFI_P2P, NM_META_SETTING_TYPE_WIMAX, |