from bits.definitions import BitDefinition, BitParameterDefinition
from octopoes.models.ooi.dns.records import DNSAAAARecord, DNSARecord, DNSNSRecord
from octopoes.models.ooi.dns.zone import Hostname

BIT = BitDefinition(
    id="ipv6-webservers",
    consumes=Hostname,
    parameters=[
        BitParameterDefinition(ooi_type=DNSAAAARecord, relation_path="hostname"),
        BitParameterDefinition(ooi_type=DNSARecord, relation_path="hostname"),
        BitParameterDefinition(ooi_type=DNSNSRecord, relation_path="name_server_hostname"),
    ],
    module="bits.ipv6_webservers.ipv6_webservers",
)
