Update the 'ports' option in bridge settings.

It seems space is right delimiter. On trusty I got the following error trying to bringing up the bridge:

$ ifup br0
interface em1,em2 does not exist!
This commit is contained in:
Zhi Han 2016-12-08 10:22:11 -05:00 committed by GitHub
parent 912c034653
commit af8b675cc3

View File

@ -1134,7 +1134,7 @@ def _parse_bridge_opts(opts, iface):
if 'ports' in opts: if 'ports' in opts:
if isinstance(opts['ports'], list): if isinstance(opts['ports'], list):
opts['ports'] = ','.join(opts['ports']) opts['ports'] = ' '.join(opts['ports'])
config.update({'ports': opts['ports']}) config.update({'ports': opts['ports']})
for opt in ['ageing', 'fd', 'gcint', 'hello', 'maxage']: for opt in ['ageing', 'fd', 'gcint', 'hello', 'maxage']: