having proto default to static since it's needed to build the template.

This commit is contained in:
Gareth J. Greenaway 2015-06-29 13:21:04 -07:00
parent c7003d4951
commit 6f2a6c940b

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: