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'
|
elsif Facter.value(:operatingsystem) == 'Solaris'
|
||||||
ipadm('create-ip', @resource[:name])
|
ipadm('create-ip', @resource[:name])
|
||||||
else
|
else
|
||||||
ip('link', 'set', @resource[:name], 'up')
|
ip('link', 'set', 'dev', @resource[:name], 'up')
|
||||||
end
|
end
|
||||||
external_ids = @resource[:external_ids] if @resource[:external_ids]
|
external_ids = @resource[:external_ids] if @resource[:external_ids]
|
||||||
end
|
end
|
||||||
@ -33,7 +33,7 @@ Puppet::Type.type(:vs_bridge).provide(:ovs) do
|
|||||||
if Facter.value(:operatingsystem) == 'FreeBSD'
|
if Facter.value(:operatingsystem) == 'FreeBSD'
|
||||||
ifconfig(@resource[:name],'down')
|
ifconfig(@resource[:name],'down')
|
||||||
else
|
else
|
||||||
ip('link', 'set', @resource[:name], 'down')
|
ip('link', 'set', 'dev', @resource[:name], 'down')
|
||||||
end
|
end
|
||||||
vsctl('del-br', @resource[:name])
|
vsctl('del-br', @resource[:name])
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user