When looping through the various pre, post, up and down commands put them into the interface dict using the right internet family variable.

This commit is contained in:
Gareth J. Greenaway 2017-10-18 12:51:29 -07:00
parent 0cd493b691
commit 5f7555846f
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -1388,7 +1388,7 @@ def _parse_settings_eth(opts, iface_type, enabled, iface):
for opt in ['up_cmds', 'pre_up_cmds', 'post_up_cmds',
'down_cmds', 'pre_down_cmds', 'post_down_cmds']:
if opt in opts:
iface_data['inet'][opt] = opts[opt]
iface_data[def_addrfam][opt] = opts[opt]
for addrfam in ['inet', 'inet6']:
if 'addrfam' in iface_data[addrfam] and iface_data[addrfam]['addrfam'] == addrfam: