mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
0cd493b691
commit
5f7555846f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue