mirror of
https://github.com/rancher/plugins.git
synced 2025-07-12 06:27:58 +00:00
A dot is a valid character in interface names and is often used in the names of VLAN interfaces. The sysctl net.ipv6.conf.<ifname>.disable_ipv6 key path cannot use dots both in the ifname and as path separator. We switch to using / as key path separator so dots are allowed in the ifname. This works because sysctl.Sysctl() accepts key paths with either dots or slashes as separators. Also, print error message to stderr in case sysctl cannot be read instead of silently hiding the error. Signed-off-by: David Verbeiren <david.verbeiren@tessares.net> |
||
---|---|---|
.. | ||
errors | ||
hns | ||
ip | ||
ipam | ||
ns | ||
testutils | ||
utils |