daemon: renamed executable variables to be simpler
This commit is contained in:
parent
8f19ad057c
commit
6dd6bc87ab
8 changed files with 74 additions and 86 deletions
|
@ -7,7 +7,7 @@ import netaddr
|
|||
|
||||
from core import utils
|
||||
from core.errors import CoreCommandError
|
||||
from core.executables import SYSCTL_BIN
|
||||
from core.executables import SYSCTL
|
||||
from core.nodes.base import CoreNode
|
||||
from core.services.coreservices import CoreService, ServiceMode
|
||||
|
||||
|
@ -48,13 +48,13 @@ class IPForwardService(UtilService):
|
|||
%(sysctl)s -w net.ipv4.conf.all.rp_filter=0
|
||||
%(sysctl)s -w net.ipv4.conf.default.rp_filter=0
|
||||
""" % {
|
||||
"sysctl": SYSCTL_BIN
|
||||
"sysctl": SYSCTL
|
||||
}
|
||||
for iface in node.get_ifaces():
|
||||
name = utils.sysctl_devname(iface.name)
|
||||
cfg += "%s -w net.ipv4.conf.%s.forwarding=1\n" % (SYSCTL_BIN, name)
|
||||
cfg += "%s -w net.ipv4.conf.%s.send_redirects=0\n" % (SYSCTL_BIN, name)
|
||||
cfg += "%s -w net.ipv4.conf.%s.rp_filter=0\n" % (SYSCTL_BIN, name)
|
||||
cfg += "%s -w net.ipv4.conf.%s.forwarding=1\n" % (SYSCTL, name)
|
||||
cfg += "%s -w net.ipv4.conf.%s.send_redirects=0\n" % (SYSCTL, name)
|
||||
cfg += "%s -w net.ipv4.conf.%s.rp_filter=0\n" % (SYSCTL, name)
|
||||
return cfg
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue