Don't require tunctl if no_bridge is set

parent 949dbcd2
...@@ -1099,10 +1099,12 @@ class Config(object): ...@@ -1099,10 +1099,12 @@ class Config(object):
if not self.dry_run: if not self.dry_run:
if self.alter_user: if self.alter_user:
self.checkRequiredBinary(['groupadd', 'useradd', 'usermod']) self.checkRequiredBinary(['groupadd', 'useradd', 'usermod'])
if not self.no_bridge:
self.checkRequiredBinary(['tunctl'])
if self.alter_network: if self.alter_network:
self.checkRequiredBinary(['ip', 'tunctl']) self.checkRequiredBinary(['ip'])
# Required, even for dry run # Required, even for dry run
if self.alter_network: if self.alter_network and not self.no_bridge:
self.checkRequiredBinary(['brctl']) self.checkRequiredBinary(['brctl'])
# Check if root is needed # Check if root is needed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment