Add cluster bridge on startup

This commit is contained in:
Joshua Boniface 2018-11-18 17:58:06 -05:00
parent f0030ee5ed
commit 37a0432281
1 changed files with 6 additions and 0 deletions

View File

@ -444,6 +444,12 @@ if config['daemon_mode'] == 'coordinator':
common.run_os_command('ip link set {} up'.format(upstream_dev))
common.run_os_command('ip address add {} dev {}'.format(upstream_dev_ip, upstream_dev))
# Cluster bridge configuration
logger.out('Setting up cluster network bridge on interface {}'.format(vni_dev), state='i')
common.run_os_command('brctl addbr brcluster')
common.run_os_command('brctl addif brcluster {}'.format(vni_dev))
common.run_os_command('ip link set brcluster mtu 9000 up')
###############################################################################
# PHASE 7a - Ensure Libvirt is running on the local host
###############################################################################