code: def add_ip(self, family='IPv4'):
          
          IP = self.cloud_manager.attach_ip(self.uuid, family)
          self.ip_addresses.append(IP)
          return IP
docs: Allocate a new (random) IP-address to the Server.