set default network mode to shared zone (and shared virtual bridge)
This commit is contained in:
parent
96da6704df
commit
69e709708f
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue