def _has_active_network_in_vlan(vlan):
    """
    Check if there are any other active network in the vlan
    this is used because some equipments remove all the L3 config
    when applying some commands, so they can only be applyed at the first time
    or to remove interface vlan configuration

    :param vlan: vlan object

    :returns: True of False
    """
    networksv4 = vlan.networkipv4_set.filter(active=True)
    networksv6 = vlan.networkipv6_set.filter(active=True)

    if networksv4 or networksv6:
        return True
    return False