Merge "Restart service properly on RHEL case"
This commit is contained in:
commit
3d869aa096
|
@ -134,14 +134,8 @@ DNS={nameservers}
|
||||||
with open(bridge_file, 'w') as target_file:
|
with open(bridge_file, 'w') as target_file:
|
||||||
target_file.write(bridge_file_content)
|
target_file.write(bridge_file_content)
|
||||||
|
|
||||||
# turn down pre-existing interface and start the bridge
|
# restart networking to properly pick interfaces
|
||||||
# because at this point, glean has already configured
|
subprocess.call(['service', 'network', 'restart'])
|
||||||
# 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])
|
|
||||||
|
|
||||||
|
|
||||||
# mock object to interact with glean
|
# mock object to interact with glean
|
||||||
|
|
Loading…
Reference in New Issue