summaryrefslogtreecommitdiff
path: root/libnm-core
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-12-22 15:10:22 +0100
committerThomas Haller <thaller@redhat.com>2015-01-10 21:10:52 +0100
commit3e33a5a6c553ba9f8d8c888b127e86ad3b462e7d (patch)
tree050ef1d9d95244ac0712e1a1518ff084bdfcccfe /libnm-core
parent207ab013a11bb4c730297a2eedf8600e33f33e23 (diff)
downloadNetworkManager-3e33a5a6c553ba9f8d8c888b127e86ad3b462e7d.tar.gz
ifcfg-rh: support ipvx.route-metric property as IPVX_ROUTE_METRIC
Write ipv4.route-metric and ipv6.route-metric property of NMSettingConnection as IPV4_ROUTE_METRIC and IPV6_ROUTE_METRIC, respectively.
Diffstat (limited to 'libnm-core')
-rw-r--r--libnm-core/nm-setting-ip4-config.c9
-rw-r--r--libnm-core/nm-setting-ip6-config.c9
2 files changed, 18 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-ip4-config.c b/libnm-core/nm-setting-ip4-config.c
index 686192678a..81cc1f8889 100644
--- a/libnm-core/nm-setting-ip4-config.c
+++ b/libnm-core/nm-setting-ip4-config.c
@@ -571,6 +571,15 @@ nm_setting_ip4_config_class_init (NMSettingIP4ConfigClass *ip4_class)
* ---end---
*/
+ /* ---ifcfg-rh---
+ * property: route-metric
+ * variable: IPV4_ROUTE_METRIC(+)
+ * default: -1
+ * description: IPV4_ROUTE_METRIC is the default IPv4 metric for routes on this connection.
+ * If set to -1, a default metric based on the device type is used.
+ * ---end---
+ */
+
/**
* NMSettingIP4Config:dhcp-client-id:
*
diff --git a/libnm-core/nm-setting-ip6-config.c b/libnm-core/nm-setting-ip6-config.c
index f5d903340c..29ca551525 100644
--- a/libnm-core/nm-setting-ip6-config.c
+++ b/libnm-core/nm-setting-ip6-config.c
@@ -488,6 +488,15 @@ nm_setting_ip6_config_class_init (NMSettingIP6ConfigClass *ip6_class)
* ---end---
*/
+ /* ---ifcfg-rh---
+ * property: route-metric
+ * variable: IPV6_ROUTE_METRIC(+)
+ * default: -1
+ * description: IPV6_ROUTE_METRIC is the default IPv6 metric for routes on this connection.
+ * If set to -1, a default metric based on the device type is used.
+ * ---end---
+ */
+
/**
* NMSettingIP6Config:ip6-privacy:
*