deb-designate/designate/objects/rrdata_aaaa.py
Kiall Mac Innes 625914d469 Objects should have a concrete list of their fields
Objects should have a concrete list of their fields in order to always be
able to know if a field is valid for an object, regardless of if the field
has had a value set for a particular instance.

Additionally, Objects now inherit fields from their super-classes, removing
the need for special casing RRDATA_FIELDS on RRData objects.

Change-Id: Iec62750453f8684201102f22e7bae736df6720a8
2014-06-24 15:32:23 +01:00

28 lines
932 B
Python

# Copyright (c) 2014 Rackspace Hosting
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from designate.objects.record import Record
class RRData_AAAA(Record):
"""
AAAA Resource Record Type
Defined in: RFC3596
"""
FIELDS = ['address']
# The record type is defined in the RFC. This will be used when the record
# is sent by mini-dns.
RECORD_TYPE = 28