set default network mode to shared zone (and shared virtual bridge)

This commit is contained in:
Christophe Siraut 2018-06-12 11:10:22 +02:00
parent 96da6704df
commit 69e709708f
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ def main():
parser.add_argument('-b', '--bind', metavar="/path/to/bind",
help='bind mount folder or device')
parser.add_argument('-m', '--mode',
default='private',
default='zone',
choices=['private', 'zone', 'bridge'],
help='configure nspawn network; default: '
'containers cannot talk to each others')
@ -56,7 +56,7 @@ def main():
logger.setLevel(logging.DEBUG)
if args.address and args.mode == 'private':
logger.info('auto-selecting zone network mode, required with static address')
logger.warning('private networking mode not supported with static address')
args.mode = 'zone'
if args.action == 'create' or args.action == 'config':