1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

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 <roopa@cumulusnetworks.com>
This commit is contained in:
Roopa Prabhu
2016-03-14 22:05:49 -07:00
parent 4a95c92f55
commit 40103cf756

View File

@@ -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'