def _create_db_object(self, obj_id=None):
     if (self.is_ipv4):
         return dbutils.create_test_dns(id=obj_id,
                                        forisystemid=self.system.id,
                                        nameservers='8.8.8.8,8.8.4.4')
     else:
         return dbutils.create_test_dns(
             id=obj_id,
             forisystemid=self.system.id,
             nameservers='2001:4860:4860::8888,2001:4860:4860::8844')
Beispiel #2
0
 def _create_test_dns(self):
     nameservers = ','.join(self.nameservers)
     self.dns = dbutils.create_test_dns(forisystemid=self.system.id,
                                        nameservers=nameservers)