Exemple #1
0
class Lease4(models.Model):
    address = fields.IPv4Address(primary_key=True)
    hwaddr = fields.Binary(blank=True, null=True)
    client_id = fields.Binary(blank=True, null=True)
    valid_lifetime = models.BigIntegerField(blank=True, null=True)
    expire = models.DateTimeField(blank=True, null=True)
    subnet_id = models.BigIntegerField(blank=True, null=True)
    fqdn_fwd = models.BooleanField(blank=True, null=True)
    fqdn_rev = models.BooleanField(blank=True, null=True)
    hostname = models.CharField(max_length=255, blank=True, null=True)
    state = models.ForeignKey('LeaseState', models.DO_NOTHING, db_column='state', blank=True, null=True)
    user_context = models.TextField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'lease4'
Exemple #2
0
class Lease6(models.Model):
    address = models.CharField(primary_key=True, max_length=39)
    duid = fields.Binary(blank=True, null=True)
    valid_lifetime = models.BigIntegerField(blank=True, null=True)
    expire = models.DateTimeField(blank=True, null=True)
    subnet_id = models.BigIntegerField(blank=True, null=True)
    pref_lifetime = models.BigIntegerField(blank=True, null=True)
    lease_type = models.ForeignKey('Lease6Type', models.DO_NOTHING, db_column='lease_type', blank=True, null=True)
    iaid = models.IntegerField(blank=True, null=True)
    prefix_len = models.SmallIntegerField(blank=True, null=True)
    fqdn_fwd = models.BooleanField(blank=True, null=True)
    fqdn_rev = models.BooleanField(blank=True, null=True)
    hostname = models.CharField(max_length=255, blank=True, null=True)
    state = models.ForeignKey('LeaseState', models.DO_NOTHING, db_column='state', blank=True, null=True)
    hwaddr = fields.Binary(blank=True, null=True)
    hwtype = models.SmallIntegerField(blank=True, null=True)
    hwaddr_source = models.SmallIntegerField(blank=True, null=True)
    user_context = models.TextField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'lease6'
Exemple #3
0
class Dhcp6Option(models.Model):
    option_id = models.AutoField(primary_key=True)
    code = models.IntegerField()
    value = fields.Binary(blank=True, null=True)
    formatted_value = models.TextField(blank=True, null=True)
    space = models.CharField(max_length=128, blank=True, null=True)
    persistent = models.BooleanField()
    dhcp_client_class = models.CharField(max_length=128, blank=True, null=True)
    dhcp6_subnet_id = models.BigIntegerField(blank=True, null=True)
    host = models.ForeignKey('Host', models.DO_NOTHING, blank=True, null=True)
    scope = models.ForeignKey('DhcpOptionScope', models.DO_NOTHING)
    user_context = models.TextField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'dhcp6_options'
Exemple #4
0
class Host(models.Model):
    host_id = models.AutoField(primary_key=True)
    dhcp_identifier = fields.Binary()
    dhcp_identifier_type = models.ForeignKey(HostIdentifierType, models.DO_NOTHING, db_column='dhcp_identifier_type')
    dhcp4_subnet_id = models.BigIntegerField(blank=True, null=True)
    dhcp6_subnet_id = models.BigIntegerField(blank=True, null=True)
    ipv4_address = fields.IPv4Address(blank=True, null=True)
    hostname = models.CharField(max_length=255, blank=True, null=True)
    dhcp4_client_classes = models.CharField(max_length=255, blank=True, null=True)
    dhcp6_client_classes = models.CharField(max_length=255, blank=True, null=True)
    dhcp4_next_server = fields.IPv4Address(blank=True, null=True)
    dhcp4_server_hostname = models.CharField(max_length=64, blank=True, null=True)
    dhcp4_boot_file_name = models.CharField(max_length=128, blank=True, null=True)
    user_context = models.TextField(blank=True, null=True)
    auth_key = models.CharField(max_length=32, blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'hosts'
        unique_together = (('dhcp_identifier', 'dhcp_identifier_type', 'dhcp4_subnet_id'), ('ipv4_address', 'dhcp4_subnet_id'), ('dhcp_identifier', 'dhcp_identifier_type', 'dhcp6_subnet_id'),)