configure-ovs.sh:incorrect setting for cloned-mac-address field"
@@ -219,9 +219,9 @@ contents:
sed -i '/^\[connection\]$/a interface-name=br-ex' ${new_conn_file}
fi
if ! grep 'cloned-mac-address=' ${new_conn_file} &> /dev/null; then
- sed -i '/^\[ethernet\]$/,/^\[/ s/^cloned-mac-address=.*$/cloned-mac-address='"$iface_mac"'/' ${new_conn_file}
- else
sed -i '/^\[ethernet\]$/a cloned-mac-address='"$iface_mac" ${new_conn_file}
+ else
+ sed -i '/^\[ethernet\]$/,/^\[/ s/^cloned-mac-address=.*$/cloned-mac-address='"$iface_mac"'/' ${new_conn_file}
fi
if grep 'mtu=' ${new_conn_file} &> /dev/null; then
sed -i '/^\[ethernet\]$/,/^\[/ s/^mtu=.*$/mtu='"$iface_mtu"'/' ${new_conn_file}
