added a comment for datapath_id section

This commit is contained in:
Gilles Dubreuil 2013-09-23 11:59:32 +10:00
parent 3853c47d50
commit 827d3d1363

View File

@ -93,13 +93,13 @@ Puppet::Type.type(:vs_port).provide(:ovs_redhat) do
raise RuntimeError, 'Undefined boot protocol'
end
# The idea here to have a fixed MAC address
datapath_id = vsctl("get", "bridge", @resource[:bridge], 'datapath_id')
bridge_mac_address = datapath_id[-14..-3].scan(/.{1,2}/).join(':') if datapath_id
if bridge_mac_address
bridge_file << "OVS_EXTRA=\"set bridge #{@resource[:bridge]} other-config:hwaddr=#{bridge_mac_address}\"\n"
end
bridge_file.close
end
end