Skip to content

Commit

Permalink
Setup out slave and bond in state.network
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutchins committed Apr 5, 2012
1 parent 457f20d commit 1fe6244
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions salt/states/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ def managed(
'comment': 'Interface {0} is up to date.'.format(name)
}

# get current iface run through settings filter
# get proposed iface submit to builder
# diff iface
if type = 'slave' and 'slave' not in kwargs:
kwargs['slave'] = 'yes'
try:
old = __salt__['network.get'](name)
new = __salt__['network.build'](name, type, kwargs)
Expand All @@ -120,5 +119,9 @@ def managed(
ret['result'] = False
ret['comment'] = error.message

if type == 'bond':
pass
# Start the bond, this will be something in the rh_network module.

return ret

0 comments on commit 1fe6244

Please sign in to comment.