add missing dev keyword to ip link command
Related-bug: 1565835 Change-Id: Ic4ed5526f3428a035a78f18b9df228c4ee792a6a
This commit is contained in:
parent
32fb6fe310
commit
dab2f37b2b
@ -24,7 +24,7 @@ Puppet::Type.type(:vs_bridge).provide(:ovs) do
|
||||
elsif Facter.value(:operatingsystem) == 'Solaris'
|
||||
ipadm('create-ip', @resource[:name])
|
||||
else
|
||||
ip('link', 'set', @resource[:name], 'up')
|
||||
ip('link', 'set', 'dev', @resource[:name], 'up')
|
||||
end
|
||||
external_ids = @resource[:external_ids] if @resource[:external_ids]
|
||||
end
|
||||
@ -33,7 +33,7 @@ Puppet::Type.type(:vs_bridge).provide(:ovs) do
|
||||
if Facter.value(:operatingsystem) == 'FreeBSD'
|
||||
ifconfig(@resource[:name],'down')
|
||||
else
|
||||
ip('link', 'set', @resource[:name], 'down')
|
||||
ip('link', 'set', 'dev', @resource[:name], 'down')
|
||||
end
|
||||
vsctl('del-br', @resource[:name])
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user