From 4f2e20a0a0d701b1f71f62875b123c76d8f1a679 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Wed, 1 Feb 2023 08:40:23 -0800 Subject: [PATCH] daemon: updated usage of sysctl to properly leverage utility function to correct device name --- daemon/core/nodes/netclient.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/core/nodes/netclient.py b/daemon/core/nodes/netclient.py index e0a409f4..74087e31 100644 --- a/daemon/core/nodes/netclient.py +++ b/daemon/core/nodes/netclient.py @@ -5,6 +5,7 @@ from typing import Callable import netaddr +from core import utils from core.executables import ETHTOOL, IP, OVS_VSCTL, SYSCTL, TC @@ -177,6 +178,7 @@ class LinuxNetClient: if netaddr.valid_ipv6(address.split("/")[0]): # IPv6 addresses are removed by default on interface down. # Make sure that the IPv6 address we add is not removed + device = utils.sysctl_devname(device) self.run(f"{SYSCTL} -w net.ipv6.conf.{device}.keep_addr_on_down=1") def delete_address(self, device: str, address: str) -> None: