Fixing a typo in the debian_ip module.

This commit is contained in:
Gareth J. Greenaway 2015-02-27 15:49:49 -08:00
parent abfd1a80bd
commit cd5234efc4

View File

@ -427,7 +427,7 @@ IPV4_ATTR_MAP = {
'server': __ipv4_quad,
'hwaddr': __mac,
# tunnel
'mode': __within(['gre', 'GRE', 'ipip', 'IPIP'], dtype=str),
'mode': __within(['gre', 'GRE', 'ipip', 'IPIP', '802.3ad' ], dtype=str),
'endpoint': __ipv4_quad,
'dstaddr': __ipv4_quad,
'local': __ipv4_quad,
@ -1460,8 +1460,8 @@ def _write_file_ifaces(iface, data, **settings):
filename = settings['filename']
_SEPERATE_FILE = True
else:
if 'filename' in adapter[adapter]['data']:
filename = adapter[adapter]['data']
if 'filename' in adapters[adapter]['data']:
filename = adapters[adapter]['data']
else:
filename = _DEB_NETWORK_FILE