Merge "Restart service properly on RHEL case"

This commit is contained in:
Jenkins 2016-09-12 10:04:56 +00:00 committed by Gerrit Code Review
commit 3d869aa096
1 changed files with 2 additions and 8 deletions

View File

@ -134,14 +134,8 @@ DNS={nameservers}
with open(bridge_file, 'w') as target_file:
target_file.write(bridge_file_content)
# turn down pre-existing interface and start the bridge
# because at this point, glean has already configured
# previous interface that needs to be overriden.
# This will only happen at first time that the bridge
# is configured, because on reboots, we won't reach this
# configure_bridge method
subprocess.call(['ifdown', interface_name])
subprocess.call(['ifup', bridge_name])
# restart networking to properly pick interfaces
subprocess.call(['service', 'network', 'restart'])
# mock object to interact with glean