From 40103cf75649518ac84762ab8c2e19963a722d74 Mon Sep 17 00:00:00 2001 From: Roopa Prabhu Date: Mon, 14 Mar 2016 22:05:49 -0700 Subject: [PATCH] addons: vrf: use full path to cgcreate and cgset This avoids 'No such file or directory' errors at bootup when ifupdown2 is called from the init script Signed-off-by: Roopa Prabhu --- addons/vrf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/vrf.py b/addons/vrf.py index 7f9e344..26d77f3 100644 --- a/addons/vrf.py +++ b/addons/vrf.py @@ -293,8 +293,8 @@ class vrf(moduleBase): return try: if not os.path.exists('/sys/fs/cgroup/l3mdev/%s' %ifaceobj.name): - self.exec_command('cgcreate -g l3mdev:%s' %ifaceobj.name) - self.exec_command('cgset -r l3mdev.master-device=%s %s' + self.exec_command('/usr/bin/cgcreate -g l3mdev:%s' %ifaceobj.name) + self.exec_command('/usr/bin/cgset -r l3mdev.master-device=%s %s' %(ifaceobj.name, ifaceobj.name)) except Exception, e: self.log_warn('%s: cgroup create failed (%s)\n' -- 2.39.5