More accurately it seems like this should be deleted and a smarter script added to the vagrant oem that generates this correctly. Appending is going to be just as racy as the delete sed.

All this network related configuration should be passed into the vm via cloud config and let cloudinit setup both networkd and environment in a safe race-free way.