Corrects "ip link set" command
neutron_l3_ovs_bridge/neutron.rb executes the command ip link set @resource[:name] up This command fails when the resource name is “br” with the following error: ip link set br up "up" is invalid lladdr. To correct this error execute with “ip link set dev @resource[:name] up”: from ip link help: ip link set { dev DEVICE | group DEVGROUP } [ { up | down } Change-Id: I35b5ee79b05c01d4261935a55c8b3b86a7c8d8b2
This commit is contained in:
parent
6bcb0bd574
commit
45e05dd4b8
@ -42,7 +42,7 @@ Puppet::Type.type(:neutron_l3_ovs_bridge).provide(:neutron) do
|
|||||||
|
|
||||||
def create
|
def create
|
||||||
ip('addr', 'add', gateway_ip, 'dev', @resource[:name])
|
ip('addr', 'add', gateway_ip, 'dev', @resource[:name])
|
||||||
ip('link', 'set', @resource[:name], 'up')
|
ip('link', 'set', 'dev', @resource[:name], 'up')
|
||||||
@property_hash[:ensure] = :present
|
@property_hash[:ensure] = :present
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user