Merge pull request #25045 from garethgreenaway/24521_debian_networking

Fixes to debian_ip.py in 2015.5
This commit is contained in:
Justin Findlay 2015-06-30 11:36:42 -06:00
commit ebd6cdc412

View file

@ -1529,6 +1529,9 @@ def build_interface(iface, iface_type, enabled, **settings):
if iface_type not in _IFACE_TYPES:
_raise_error_iface(iface, iface_type, _IFACE_TYPES)
if 'proto' not in settings:
settings['proto'] = 'static'
if iface_type == 'slave':
settings['slave'] = 'yes'
if 'master' not in settings: