summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÍñigo Huguet <ihuguet@redhat.com>2023-08-29 15:47:10 +0200
committerÍñigo Huguet <ihuguet@redhat.com>2023-09-21 15:49:24 +0200
commit03db294c5ce5a852f885792f1149aa7a8798678c (patch)
tree49bf16921e058bc4fd6e0b259cbbe5aa4c5f00e6
parent9d7644af5f084f8fe0fd60cc6c8520c9f7eaec8f (diff)
man: keyfile: complete the explanation of routes propertiesih/keyfile-routes-doc
Complete the explanations of routes properties, adding explanations for routesN_option and routing-rules.
-rw-r--r--src/libnm-core-impl/nm-setting-ip4-config.c19
-rw-r--r--src/libnm-core-impl/nm-setting-ip6-config.c19
2 files changed, 38 insertions, 0 deletions
diff --git a/src/libnm-core-impl/nm-setting-ip4-config.c b/src/libnm-core-impl/nm-setting-ip4-config.c
index 9ed3950724..4e8606feea 100644
--- a/src/libnm-core-impl/nm-setting-ip4-config.c
+++ b/src/libnm-core-impl/nm-setting-ip4-config.c
@@ -703,6 +703,15 @@ nm_setting_ip4_config_class_init(NMSettingIP4ConfigClass *klass)
* route2=7.7.0.0/16
* ---end---
*/
+ /* ---keyfile---
+ * property: routes (attributes)
+ * variable: route1_options, route2_options, ...
+ * format: key=val[,key=val...]
+ * description: Attributes defined for the routes, if any. The supported
+ * attributes are explained in ipv4.routes entry in `man nm-settings-nmcli`.
+ * example: route1_options=mtu=1000,onlink=true
+ * ---end---
+ */
/* ---ifcfg-rh---
* property: routes
* variable: ADDRESS1, NETMASK1, GATEWAY1, METRIC1, OPTIONS1, ...
@@ -711,6 +720,16 @@ nm_setting_ip4_config_class_init(NMSettingIP4ConfigClass *klass)
* ---end---
*/
+ /* ---keyfile---
+ * property: routing-rules
+ * variable: routing-rule1, routing-rule2, ...
+ * format: routing rule string
+ * description: Routing rules as defined with `ip rule add`, but with mandatory
+ * fixed priority.
+ * example: routing-rule1=priority 5 from 192.167.4.0/24 table 45
+ * ---end---
+ */
+
/* ---ifcfg-rh---
* property: ignore-auto-routes
* variable: PEERROUTES(+)
diff --git a/src/libnm-core-impl/nm-setting-ip6-config.c b/src/libnm-core-impl/nm-setting-ip6-config.c
index 661a451e42..9e93336539 100644
--- a/src/libnm-core-impl/nm-setting-ip6-config.c
+++ b/src/libnm-core-impl/nm-setting-ip6-config.c
@@ -714,6 +714,15 @@ nm_setting_ip6_config_class_init(NMSettingIP6ConfigClass *klass)
* example: route1=2001:4860:4860::/64,2620:52:0:2219:222:68ff:fe11:5403
* ---end---
*/
+ /* ---keyfile---
+ * property: routes (attributes)
+ * variable: route1_options, route2_options, ...
+ * format: key=val[,key=val...]
+ * description: Attributes defined for the routes, if any. The supported
+ * attributes are explained in ipv6.routes entry in `man nm-settings-nmcli`.
+ * example: route1_options=mtu=1000,onlink=true
+ * ---end---
+ */
/* ---ifcfg-rh---
* property: routes
* variable: (none)
@@ -722,6 +731,16 @@ nm_setting_ip6_config_class_init(NMSettingIP6ConfigClass *klass)
* ---end---
*/
+ /* ---keyfile---
+ * property: routing-rules
+ * variable: routing-rule1, routing-rule2, ...
+ * format: routing rule string
+ * description: Routing rules as defined with `ip rule add`, but with mandatory
+ * fixed priority.
+ * example: routing-rule1=priority 5 from 2001:4860:4860::/64 table 45
+ * ---end---
+ */
+
/* ---ifcfg-rh---
* property: ignore-auto-routes
* variable: IPV6_PEERROUTES(+)