mirror of
https://github.com/opnsense/src.git
synced 2026-06-05 06:42:56 -04:00
atf_python: Set verbosity for commands in a vnet
Reviewed by: markj MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/865
This commit is contained in:
parent
a1eb150ce2
commit
8a30ab5369
1 changed files with 2 additions and 2 deletions
|
|
@ -225,10 +225,10 @@ class VnetInstance(object):
|
|||
self.pipe = None
|
||||
self.subprocess = None
|
||||
|
||||
def run_vnet_cmd(self, cmd):
|
||||
def run_vnet_cmd(self, cmd, verbose=True):
|
||||
if not self.attached:
|
||||
cmd = "/usr/sbin/jexec {} {}".format(self.name, cmd)
|
||||
return run_cmd(cmd)
|
||||
return run_cmd(cmd, verbose)
|
||||
|
||||
def disable_dad(self):
|
||||
self.run_vnet_cmd("/sbin/sysctl net.inet6.ip6.dad_count=0")
|
||||
|
|
|
|||
Loading…
Reference in a new issue