Пример #1
0
    def setUp(self):
        super(BaseDomain, self).setUp()

        Domain.objects.create(name="128.in-addr.arpa")

        self.f_c = Domain.create_recursive(name='foo.poo')
        make_root(self.f_c)

        self.net = Network.objects.create(network_str='10.2.3.0/29')
        self.sr = Range.objects.create(
            network=self.net, range_type=STATIC, start_str='10.2.3.1',
            end_str='10.2.3.4')
Пример #2
0
    def setUp(self):
        super(BaseDomain, self).setUp()

        Domain.objects.create(name="128.in-addr.arpa")

        self.f_c = Domain.create_recursive(name='foo.poo')
        make_root(self.f_c)

        self.net = Network.objects.create(network_str='10.2.3.0/29')
        self.sr = Range.objects.create(network=self.net,
                                       range_type=STATIC,
                                       start_str='10.2.3.1',
                                       end_str='10.2.3.4')
Пример #3
0
def create_reverse_domain(ip, ip_type):
    return Domain.create_recursive(name=ip_prefix_to_reverse_name(ip, ip_type))
Пример #4
0
def create_reverse_domain(ip, ip_type):
    return Domain.create_recursive(name=ip_prefix_to_reverse_name(ip, ip_type))