def validate(cls, subnet, prefix):
        '''
        Validates an octoDNS subnet making sure that it is valid
        '''
        reasons = []

        try:
            cls.parse(subnet)
        except ValueError:
            reasons.append(f'{prefix}invalid subnet "{subnet}"')

        return reasons

        Validates an octoDNS subnet making sure that it is valid
        
octodns/record/subnet.py