def attach_ip(self, server, family='<STR_LIT>'):
body = {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': str(server),<EOL>'<STR_LIT>': family<EOL>}<EOL>}<EOL>res = self.request('<STR_LIT:POST>', '<STR_LIT>', body)<EOL>return IPAddress(cloud_manager=self, **res['<STR_LIT>'])<EOL>
Attach a new (random) IPAddress to the given server (object or UUID).