diff --git a/salt/modules/debian_ip.py b/salt/modules/debian_ip.py index 0ef6ba90a5..24765ca66d 100644 --- a/salt/modules/debian_ip.py +++ b/salt/modules/debian_ip.py @@ -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